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
29
pkgs/development/python-modules/mock-open/default.nix
Normal file
29
pkgs/development/python-modules/mock-open/default.nix
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
{ lib, buildPythonPackage, fetchFromGitHub, fetchpatch, pythonOlder, mock }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "mock-open";
|
||||
version = "1.4.0";
|
||||
|
||||
# no tests in PyPI tarball
|
||||
src = fetchFromGitHub {
|
||||
owner = "nivbend";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "0qlz4y8jqxsnmqg03yp9f87rmnjrvmxm5qvm6n1218gm9k5dixbm";
|
||||
};
|
||||
|
||||
patches = lib.optional (pythonOlder "3.0")
|
||||
(fetchpatch {
|
||||
name = "ascii-only.patch";
|
||||
url = "https://github.com/das-g/mock-open/commit/521ff260da127949fe4aceff1667cba223c5b07b.patch";
|
||||
sha256 = "0ampbhk7kwkn0q5d2h9wrflkr8fji2bybmdck4qdzw1qkslfwwrn";
|
||||
});
|
||||
|
||||
propagatedBuildInputs = lib.optional (pythonOlder "3.3") mock;
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/nivbend/mock-open";
|
||||
description = "A better mock for file I/O";
|
||||
license = licenses.mit;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue