841d9c7fc1
GitOrigin-RevId: 3a8d7958a610cd3fec3a6f424480f91a1b259185
34 lines
719 B
Nix
34 lines
719 B
Nix
{ lib, buildPythonPackage, fetchPypi, python
|
|
, mock
|
|
, purl
|
|
, requests
|
|
, six
|
|
, testrepository
|
|
, testtools
|
|
, pytest
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "requests-mock";
|
|
version = "1.9.3";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "8d72abe54546c1fc9696fa1516672f1031d72a55a1d66c85184f972a24ba0eba";
|
|
};
|
|
|
|
patchPhase = ''
|
|
sed -i 's@python@${python.interpreter}@' .testr.conf
|
|
'';
|
|
|
|
propagatedBuildInputs = [ requests six ];
|
|
|
|
checkInputs = [ mock purl testrepository testtools pytest ];
|
|
|
|
meta = with lib; {
|
|
description = "Mock out responses from the requests package";
|
|
homepage = "https://requests-mock.readthedocs.io";
|
|
license = licenses.asl20;
|
|
maintainers = [ ];
|
|
};
|
|
}
|