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
70
pkgs/development/python-modules/ismartgate/default.nix
Normal file
70
pkgs/development/python-modules/ismartgate/default.nix
Normal file
|
|
@ -0,0 +1,70 @@
|
|||
{ lib
|
||||
, asynctest
|
||||
, buildPythonPackage
|
||||
, click
|
||||
, defusedxml
|
||||
, dicttoxml
|
||||
, fetchFromGitHub
|
||||
, httpx
|
||||
, pycryptodome
|
||||
, pytest-asyncio
|
||||
, pytest-raises
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
, respx
|
||||
, typing-extensions
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "ismartgate";
|
||||
version = "4.0.4";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "bdraco";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
hash = "sha256-yh7gPyy3VMdyINBCZo5K2wA0BY7yYgHrKGZRB/pm77U=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
click
|
||||
defusedxml
|
||||
dicttoxml
|
||||
httpx
|
||||
pycryptodome
|
||||
typing-extensions
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
asynctest
|
||||
pytest-asyncio
|
||||
pytest-raises
|
||||
pytestCheckHook
|
||||
respx
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace setup.py \
|
||||
--replace '"pytest-runner>=5.2",' ""
|
||||
'';
|
||||
|
||||
pythonImportsCheck = [
|
||||
"ismartgate"
|
||||
];
|
||||
|
||||
disabledTestPaths = [
|
||||
# Tests are out-dated
|
||||
"ismartgate/tests/test_init.py"
|
||||
];
|
||||
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python module to work with the ismartgate and gogogate2 API";
|
||||
homepage = "https://github.com/bdraco/ismartgate";
|
||||
license = with licenses; [ mit ];
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue