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
49
pkgs/development/python-modules/pythonegardia/default.nix
Normal file
49
pkgs/development/python-modules/pythonegardia/default.nix
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, fetchpatch
|
||||
, requests
|
||||
, pythonOlder
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pythonegardia";
|
||||
version = "1.0.51";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.8";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "jeroenterheerdt";
|
||||
repo = "python-egardia";
|
||||
rev = "v${version}";
|
||||
sha256 = "7HindS++jcV3GRn/SKoTMpVOchOnLojy/TY0HZjtyD8=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
requests
|
||||
];
|
||||
|
||||
patches = [
|
||||
# Adjust search path, https://github.com/jeroenterheerdt/python-egardia/pull/33
|
||||
(fetchpatch {
|
||||
name = "search-path.patch";
|
||||
url = "https://github.com/jeroenterheerdt/python-egardia/commit/6b7bf5b7b2211e3557e0f438586b9d03b9bae440.patch";
|
||||
sha256 = "wUSfmF0SrKCITQJJsHgkGgPZFouaB/zbVqupK6fARHY=";
|
||||
})
|
||||
];
|
||||
|
||||
# Project has no tests, only two test file for manual interaction
|
||||
doCheck = false;
|
||||
|
||||
pythonImportsCheck = [
|
||||
"pythonegardia"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python interface with Egardia/Woonveilig alarms";
|
||||
homepage = "https://github.com/jeroenterheerdt/python-egardia";
|
||||
license = with licenses; [ mit ];
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue