5083ee08a2
GitOrigin-RevId: 10ecda252ce1b3b1d6403caeadbcc8f30d5ab796
34 lines
707 B
Nix
34 lines
707 B
Nix
{ lib, buildPythonPackage, fetchPypi, python
|
|
, mock
|
|
, purl
|
|
, requests
|
|
, six
|
|
, testrepository
|
|
, testtools
|
|
, pytest
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "requests-mock";
|
|
version = "1.10.0";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "sha256-WcnDJBmp+xroPsJC2Y6InEW9fXpl1IN1zCQ+wIRBZYs=";
|
|
};
|
|
|
|
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 = [ ];
|
|
};
|
|
}
|