2020-04-24 23:36:52 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, python
|
|
|
|
, mock
|
|
|
|
, purl
|
|
|
|
, requests
|
|
|
|
, six
|
|
|
|
, testrepository
|
|
|
|
, testtools
|
2020-06-15 15:56:04 +00:00
|
|
|
, pytest
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "requests-mock";
|
2022-09-30 11:47:45 +00:00
|
|
|
version = "1.10.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-03-15 16:39:30 +00:00
|
|
|
hash = "sha256-WcnDJBmp+xroPsJC2Y6InEW9fXpl1IN1zCQ+wIRBZYs=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
patchPhase = ''
|
|
|
|
sed -i 's@python@${python.interpreter}@' .testr.conf
|
|
|
|
'';
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ requests six ];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [ mock purl testrepository testtools pytest ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Mock out responses from the requests package";
|
|
|
|
homepage = "https://requests-mock.readthedocs.io";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = [ ];
|
|
|
|
};
|
|
|
|
}
|