035bdbb184
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/python3.6-vcrpy/versions
48 lines
860 B
Nix
48 lines
860 B
Nix
{ buildPythonPackage
|
|
, lib
|
|
, six
|
|
, fetchPypi
|
|
, pyyaml
|
|
, mock
|
|
, contextlib2
|
|
, wrapt
|
|
, pytest
|
|
, pytest-httpbin
|
|
, yarl
|
|
, pythonOlder
|
|
, pythonAtLeast
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "vcrpy";
|
|
version = "2.0.1";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "0kws7l3hci1dvjv01nxw3805q9v2mwldw58bgl8s90wqism69gjp";
|
|
};
|
|
|
|
checkInputs = [
|
|
pytest
|
|
pytest-httpbin
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
pyyaml
|
|
wrapt
|
|
six
|
|
]
|
|
++ lib.optionals (pythonOlder "3.3") [ contextlib2 mock ]
|
|
++ lib.optionals (pythonAtLeast "3.4") [ yarl ];
|
|
|
|
checkPhase = ''
|
|
py.test --ignore=tests/integration -k "not TestVCRConnection"
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Automatically mock your HTTP interactions to simplify and speed up testing";
|
|
homepage = https://github.com/kevin1024/vcrpy;
|
|
license = licenses.mit;
|
|
};
|
|
}
|
|
|