nixpkgs/pkgs/development/python-modules/vcrpy/default.nix

45 lines
788 B
Nix
Raw Normal View History

2017-04-27 06:29:59 +00:00
{ buildPythonPackage
, lib
, pkgs
, pyyaml
, mock
, contextlib2
, wrapt
, pytest_27
, httpbin
, pytest-httpbin
, yarl
}:
2017-04-25 10:41:28 +00:00
2017-04-27 06:29:59 +00:00
buildPythonPackage rec {
2017-04-25 10:41:28 +00:00
version = "1.10.5";
name = "vcrpy-${version}";
src = pkgs.fetchurl {
url = "mirror://pypi/v/vcrpy/vcrpy-${version}.tar.gz";
sha256 = "12kncg6jyvj15mi8ca74514f2x1ih753nhyz769nwvh39r468167";
};
2017-04-27 06:29:59 +00:00
buildInputs = [
2017-04-25 10:41:28 +00:00
pyyaml
mock
contextlib2
wrapt
pytest_27
httpbin
pytest-httpbin
2017-04-27 06:29:59 +00:00
yarl
2017-04-25 10:41:28 +00:00
];
2017-04-27 06:29:59 +00:00
checkPhase = ''
py.test --ignore=tests/integration -k "TestVCRConnection.testing_connect"
'';
2017-04-25 10:41:28 +00:00
meta = with lib; {
description = "Automatically mock your HTTP interactions to simplify and speed up testing";
homepage = https://github.com/kevin1024/vcrpy;
license = licenses.mit;
};
}