mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-09-30 17:49:58 +03:00
python310Packages.homeassistant-stubs: Relax home-assistant version
Pin the home-assistant version constraint to the year and month of a release, to allow easier upgrades within a month, where the number of typing changes is probably lower.
This commit is contained in:
parent
4e04af68ea
commit
9ce2e1a415
@ -25,6 +25,14 @@ buildPythonPackage rec {
|
||||
home-assistant
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
# Relax constraint to year and month
|
||||
substituteInPlace pyproject.toml --replace \
|
||||
'homeassistant = "${version}"' \
|
||||
'homeassistant = "~${lib.versions.majorMinor home-assistant.version}"'
|
||||
cat pyproject.toml
|
||||
'';
|
||||
|
||||
pythonImportsCheck = [
|
||||
"homeassistant-stubs"
|
||||
];
|
||||
|
Loading…
Reference in New Issue
Block a user