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
37
pkgs/development/python-modules/tbm-utils/default.nix
Normal file
37
pkgs/development/python-modules/tbm-utils/default.nix
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, attrs
|
||||
, pendulum
|
||||
, pprintpp
|
||||
, wrapt
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "tbm-utils";
|
||||
version = "2.6.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1v7pb3yirkhzbv1z5i1qp74vl880f56zvzfj68p08b5jxv64hmr3";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ attrs pendulum pprintpp wrapt ];
|
||||
|
||||
# this versioning was done to prevent normal pip users from encountering
|
||||
# issues with package failing to build from source, but nixpkgs is better
|
||||
postPatch = ''
|
||||
substituteInPlace setup.py \
|
||||
--replace "'attrs>=18.2,<19.4'" "'attrs'"
|
||||
'';
|
||||
|
||||
# No tests in archive.
|
||||
doCheck = false;
|
||||
|
||||
meta = {
|
||||
description = "A commonly-used set of utilities";
|
||||
homepage = "https://github.com/thebigmunch/tbm-utils";
|
||||
license = with lib.licenses; [ mit ];
|
||||
};
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue