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
91
pkgs/development/python-modules/pyunifiprotect/default.nix
Normal file
91
pkgs/development/python-modules/pyunifiprotect/default.nix
Normal file
|
|
@ -0,0 +1,91 @@
|
|||
{ lib
|
||||
, aiohttp
|
||||
, aioshutil
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, ipython
|
||||
, packaging
|
||||
, pillow
|
||||
, poetry-core
|
||||
, pydantic
|
||||
, pyjwt
|
||||
, pytest-aiohttp
|
||||
, pytest-asyncio
|
||||
, pytest-benchmark
|
||||
, pytest-timeout
|
||||
, pytest-xdist
|
||||
, pytestCheckHook
|
||||
, python-dotenv
|
||||
, pythonOlder
|
||||
, pytz
|
||||
, termcolor
|
||||
, typer
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pyunifiprotect";
|
||||
version = "3.8.0";
|
||||
format = "pyproject";
|
||||
|
||||
disabled = pythonOlder "3.9";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "briis";
|
||||
repo = pname;
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-YFdGWGm+DUi/0l9YBliQH1VgpYEVcHVgLirJTrNmNP4=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
aiohttp
|
||||
aioshutil
|
||||
packaging
|
||||
pillow
|
||||
pydantic
|
||||
pyjwt
|
||||
pytz
|
||||
typer
|
||||
];
|
||||
|
||||
passthru.optional-dependencies = {
|
||||
shell = [
|
||||
ipython
|
||||
python-dotenv
|
||||
termcolor
|
||||
];
|
||||
};
|
||||
|
||||
checkInputs = [
|
||||
pytest-aiohttp
|
||||
pytest-asyncio
|
||||
pytest-benchmark
|
||||
pytest-timeout
|
||||
pytest-xdist
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace pyproject.toml \
|
||||
--replace "--cov=pyunifiprotect --cov-append" ""
|
||||
'';
|
||||
|
||||
pythonImportsCheck = [
|
||||
"pyunifiprotect"
|
||||
];
|
||||
|
||||
pytestFlagsArray = [
|
||||
"--benchmark-disable"
|
||||
];
|
||||
|
||||
disabledTests = [
|
||||
# Tests require ffprobe
|
||||
"test_get_camera_video"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Library for interacting with the Unifi Protect API";
|
||||
homepage = "https://github.com/briis/pyunifiprotect";
|
||||
license = with licenses; [ mit ];
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue