Merge pull request #322847 from fabaff/adguardhome-bump

This commit is contained in:
Sandro 2024-06-27 13:49:00 +02:00 committed by GitHub
commit 00a1f40ca2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -13,8 +13,8 @@
buildPythonPackage rec {
pname = "adguardhome";
version = "0.6.3";
format = "pyproject";
version = "0.7.0";
pyproject = true;
disabled = pythonOlder "3.11";
@ -22,21 +22,18 @@ buildPythonPackage rec {
owner = "frenck";
repo = "python-${pname}";
rev = "refs/tags/v${version}";
hash = "sha256-V8SsWsGYmUhR9/yV6BZBK1UjYGHlDrXrF8nt0eZbTnI=";
hash = "sha256-n55G6ulKcgSSrgPk70D52OO9fp3WURlcRhJQUKrZ1Nk=";
};
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
];