autosuspend: downgrade tzlocal to 4.3.1
autosuspend is incompatible with tzlocal v5 See https://github.com/regebro/tzlocal#api-change
This commit is contained in:
parent
fcc32aadf3
commit
0b6b520442
1 changed files with 17 additions and 3 deletions
|
@ -3,7 +3,21 @@
|
||||||
, python3
|
, python3
|
||||||
}:
|
}:
|
||||||
|
|
||||||
python3.pkgs.buildPythonApplication rec {
|
let
|
||||||
|
python = python3.override {
|
||||||
|
packageOverrides = self: super: {
|
||||||
|
# autosuspend is incompatible with tzlocal v5
|
||||||
|
# See https://github.com/regebro/tzlocal#api-change
|
||||||
|
tzlocal = super.tzlocal.overridePythonAttrs (prev: {
|
||||||
|
src = prev.src.override {
|
||||||
|
version = "4.3.1";
|
||||||
|
hash = "sha256-7jLvjCCAPBmpbtNmrd09SnKe9jCctcc1mgzC7ut/pGo=";
|
||||||
|
};
|
||||||
|
});
|
||||||
|
};
|
||||||
|
};
|
||||||
|
in
|
||||||
|
python.pkgs.buildPythonApplication rec {
|
||||||
pname = "autosuspend";
|
pname = "autosuspend";
|
||||||
version = "6.0.0";
|
version = "6.0.0";
|
||||||
|
|
||||||
|
@ -21,7 +35,7 @@ python3.pkgs.buildPythonApplication rec {
|
||||||
--replace '--cov-config=setup.cfg' ""
|
--replace '--cov-config=setup.cfg' ""
|
||||||
'';
|
'';
|
||||||
|
|
||||||
propagatedBuildInputs = with python3.pkgs; [
|
propagatedBuildInputs = with python.pkgs; [
|
||||||
dbus-python
|
dbus-python
|
||||||
icalendar
|
icalendar
|
||||||
jsonpath-ng
|
jsonpath-ng
|
||||||
|
@ -36,7 +50,7 @@ python3.pkgs.buildPythonApplication rec {
|
||||||
tzlocal
|
tzlocal
|
||||||
];
|
];
|
||||||
|
|
||||||
nativeCheckInputs = with python3.pkgs; [
|
nativeCheckInputs = with python.pkgs; [
|
||||||
freezegun
|
freezegun
|
||||||
pytest-datadir
|
pytest-datadir
|
||||||
pytest-httpserver
|
pytest-httpserver
|
||||||
|
|
Loading…
Reference in a new issue