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
44
pkgs/development/python-modules/hiyapyco/default.nix
Normal file
44
pkgs/development/python-modules/hiyapyco/default.nix
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, pyyaml
|
||||
, jinja2
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "hiyapyco";
|
||||
version = "0.4.16";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "zerwes";
|
||||
repo = pname;
|
||||
rev = "release-${version}";
|
||||
sha256 = "1ams9dp05yhgbg6255wrjgchl2mqg0s34d8b8prvql9lsh59s1fj";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
pyyaml
|
||||
jinja2
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
# Should no longer be needed with the next release
|
||||
# https://github.com/zerwes/hiyapyco/pull/42
|
||||
substituteInPlace setup.py \
|
||||
--replace "Jinja2>1,<3" "Jinja2>1"
|
||||
'';
|
||||
|
||||
checkPhase = ''
|
||||
set -e
|
||||
find test -name 'test_*.py' -exec python {} \;
|
||||
'';
|
||||
|
||||
pythonImportsCheck = [ "hiyapyco" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python library allowing hierarchical overlay of config files in YAML syntax";
|
||||
homepage = "https://github.com/zerwes/hiyapyco";
|
||||
license = licenses.gpl3Plus;
|
||||
maintainers = with maintainers; [ veehaitch ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue