python39Packages.adguardhome: fix version number

This commit is contained in:
Sandro Jäckel 2022-02-08 17:59:36 +01:00 committed by Jonathan Ringer
parent 4b13f83bf0
commit 3d8dd6bbd9

View File

@ -23,6 +23,15 @@ buildPythonPackage rec {
sha256 = "sha256-HAgt52Bo2NOUkpr5xvWTcRyrLKpfcBDlVAZxgDNI7hY=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace "--cov" "" \
--replace '"0.0.0"' '"${version}"'
substituteInPlace tests/test_adguardhome.py \
--replace 0.0.0 ${version}
'';
nativeBuildInputs = [ poetry-core ];
propagatedBuildInputs = [
@ -36,10 +45,6 @@ buildPythonPackage rec {
pytestCheckHook
];
postPatch = ''
substituteInPlace pyproject.toml --replace "--cov" ""
'';
pythonImportsCheck = [ "adguardhome" ];
meta = with lib; {