blob: ef87c4f101957a8f4d7ee818b9206199c7c0c759 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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 ];
}
|