mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-22 03:53:47 +00:00
python312Packages.adguardhome: refactor
This commit is contained in:
parent
7bdd2ba136
commit
7af983c4a1
@ -14,7 +14,7 @@
|
||||
buildPythonPackage rec {
|
||||
pname = "adguardhome";
|
||||
version = "0.7.0";
|
||||
format = "pyproject";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.11";
|
||||
|
||||
@ -27,16 +27,13 @@ buildPythonPackage rec {
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace pyproject.toml \
|
||||
--replace "--cov" "" \
|
||||
--replace '"0.0.0"' '"${version}"'
|
||||
|
||||
substituteInPlace tests/test_adguardhome.py \
|
||||
--replace 0.0.0 ${version}
|
||||
--replace-fail "--cov" "" \
|
||||
--replace-fail '"0.0.0"' '"${version}"'
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [ poetry-core ];
|
||||
build-system = [ poetry-core ];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
dependencies = [
|
||||
aiohttp
|
||||
yarl
|
||||
];
|
||||
|
Loading…
Reference in New Issue
Block a user