diff options
author | Robert Schütz <robert.schuetz@stud.uni-heidelberg.de> | 2018-04-02 22:54:24 +0200 |
---|---|---|
committer | Frederik Rietdijk <fridh@fridh.nl> | 2018-04-04 19:48:00 +0200 |
commit | a6774198364239267e418d98c7094830010c31c7 (patch) | |
tree | 4415d8cae9a6636371a21ae91777233cbea290dd /pkgs/development/python-modules/requests-mock | |
parent | ef4a84007ed752f4214f4bcab3c501ddd10c184a (diff) |
pythonPackages.requests-mock: 1.3.0 -> 1.4.0
Diffstat (limited to 'pkgs/development/python-modules/requests-mock')
-rw-r--r-- | pkgs/development/python-modules/requests-mock/default.nix | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/requests-mock/default.nix b/pkgs/development/python-modules/requests-mock/default.nix new file mode 100644 index 0000000000000..ef87c4f101957 --- /dev/null +++ b/pkgs/development/python-modules/requests-mock/default.nix @@ -0,0 +1,21 @@ +{ lib, buildPythonPackage, fetchPypi, python +, mock, testrepository, testtools +, requests, six }: + +buildPythonPackage rec { + pname = "requests-mock"; + version = "1.4.0"; + + src = fetchPypi { + inherit pname version; + sha256 = "2931887853c42e1d73879983d5bf03041109472991c5b4b8dba5d11ed23b9d0b"; + }; + + patchPhase = '' + sed -i 's@python@${python.interpreter}@' .testr.conf + ''; + + checkInputs = [ mock testrepository testtools ]; + + propagatedBuildInputs = [ requests six ]; +} |