python39Packages.adguardhome: fix version number
This commit is contained in:
parent
4b13f83bf0
commit
3d8dd6bbd9
@ -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; {
|
||||
|
Loading…
Reference in New Issue
Block a user