mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-02 21:10:08 +00:00
python3Packages.hass-client: use pyprojectVersionPatchHook
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
fetchFromGitHub,
|
||||
lib,
|
||||
orjson,
|
||||
pyprojectVersionPatchHook,
|
||||
pytest-asyncio,
|
||||
pytest-cov-stub,
|
||||
pytestCheckHook,
|
||||
@@ -25,10 +26,9 @@ buildPythonPackage rec {
|
||||
hash = "sha256-mrS3kuG/6ZE02B0Ua10AAAsgVBrEDRJxNfmIHT+EHWw=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace pyproject.toml \
|
||||
--replace-fail "1.0.0" "${version}"
|
||||
'';
|
||||
nativeBuildInputs = [
|
||||
pyprojectVersionPatchHook
|
||||
];
|
||||
|
||||
build-system = [
|
||||
setuptools
|
||||
|
||||
Reference in New Issue
Block a user