uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
34
pkgs/development/python-modules/requests-mock/default.nix
Normal file
34
pkgs/development/python-modules/requests-mock/default.nix
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
{ 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 = [ ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue