mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 23:43:30 +00:00
python310Packages.pyunifiprotect: handle optional dependencies
This commit is contained in:
parent
d88f472124
commit
a9853d7a0a
@ -3,6 +3,7 @@
|
||||
, aioshutil
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, ipython
|
||||
, packaging
|
||||
, pillow
|
||||
, poetry-core
|
||||
@ -17,6 +18,7 @@
|
||||
, python-dotenv
|
||||
, pythonOlder
|
||||
, pytz
|
||||
, termcolor
|
||||
, typer
|
||||
}:
|
||||
|
||||
@ -41,11 +43,18 @@ buildPythonPackage rec {
|
||||
pillow
|
||||
pydantic
|
||||
pyjwt
|
||||
python-dotenv
|
||||
pytz
|
||||
typer
|
||||
];
|
||||
|
||||
passthru.optional-dependencies = {
|
||||
shell = [
|
||||
ipython
|
||||
python-dotenv
|
||||
termcolor
|
||||
];
|
||||
};
|
||||
|
||||
checkInputs = [
|
||||
pytest-aiohttp
|
||||
pytest-asyncio
|
||||
@ -56,9 +65,6 @@ buildPythonPackage rec {
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
# https://github.com/briis/pyunifiprotect/pull/176
|
||||
substituteInPlace setup.cfg \
|
||||
--replace "asyncio" "aiohttp"
|
||||
substituteInPlace pyproject.toml \
|
||||
--replace "--cov=pyunifiprotect --cov-append" ""
|
||||
'';
|
||||
|
Loading…
Reference in New Issue
Block a user