Skip to content

Commit

Permalink
pythonPackages.vcrpy: enable tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Mic92 committed Apr 27, 2017
1 parent c797550 commit 237d619
Showing 1 changed file with 19 additions and 3 deletions.
22 changes: 19 additions & 3 deletions pkgs/development/python-modules/vcrpy/default.nix
@@ -1,6 +1,17 @@
{ lib, pkgs, pythonPackages }:
{ buildPythonPackage
, lib
, pkgs
, pyyaml
, mock
, contextlib2
, wrapt
, pytest_27
, httpbin
, pytest-httpbin
, yarl
}:

pythonPackages.buildPythonPackage rec {
buildPythonPackage rec {
version = "1.10.5";
name = "vcrpy-${version}";

Expand All @@ -9,16 +20,21 @@ pythonPackages.buildPythonPackage rec {
sha256 = "12kncg6jyvj15mi8ca74514f2x1ih753nhyz769nwvh39r468167";
};

buildInputs = with pythonPackages; [
buildInputs = [
pyyaml
mock
contextlib2
wrapt
pytest_27
httpbin
pytest-httpbin
yarl
];

checkPhase = ''
py.test --ignore=tests/integration -k "TestVCRConnection.testing_connect"
'';

meta = with lib; {
description = "Automatically mock your HTTP interactions to simplify and speed up testing";
homepage = https://github.com/kevin1024/vcrpy;
Expand Down

0 comments on commit 237d619

Please sign in to comment.