My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/development/python-modules/requests-mock/default.nix

34 lines
719 B

{ 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 = [ ];
};
}