autosuspend: 6.0.0 -> 6.1.1
https://github.com/languitar/autosuspend/compare/v6.0.0...v6.1.1
This commit is contained in:
parent
ef4d6ccb6f
commit
ad99178952
1 changed files with 8 additions and 25 deletions
|
@ -1,31 +1,13 @@
|
||||||
{ lib
|
{ lib
|
||||||
|
, dbus
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
, python3
|
, python3
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
python3.pkgs.buildPythonApplication rec {
|
||||||
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: rec {
|
|
||||||
version = "4.3.1";
|
|
||||||
src = fetchPypi {
|
|
||||||
inherit (prev) pname;
|
|
||||||
inherit version;
|
|
||||||
hash = "sha256-7jLvjCCAPBmpbtNmrd09SnKe9jCctcc1mgzC7ut/pGo=";
|
|
||||||
};
|
|
||||||
propagatedBuildInputs = with self; [
|
|
||||||
pytz-deprecation-shim
|
|
||||||
];
|
|
||||||
});
|
|
||||||
};
|
|
||||||
};
|
|
||||||
in
|
|
||||||
python.pkgs.buildPythonApplication rec {
|
|
||||||
pname = "autosuspend";
|
pname = "autosuspend";
|
||||||
version = "6.0.0";
|
version = "6.1.1";
|
||||||
|
|
||||||
disabled = python3.pythonOlder "3.8";
|
disabled = python3.pythonOlder "3.8";
|
||||||
|
|
||||||
|
@ -33,15 +15,15 @@ python.pkgs.buildPythonApplication rec {
|
||||||
owner = "languitar";
|
owner = "languitar";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = "refs/tags/v${version}";
|
rev = "refs/tags/v${version}";
|
||||||
hash = "sha256-gS8NNks4GaIGl7cEqWSP53I4/tIV4LypkmZ5vNOjspY=";
|
hash = "sha256-LGU/yhwuc6BuctCibm0AaRheQkuSIgEVXzcWQHCJ/8Y=";
|
||||||
};
|
};
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
substituteInPlace setup.cfg \
|
substituteInPlace setup.cfg \
|
||||||
--replace '--cov-config=setup.cfg' ""
|
--replace-fail '--cov-config=setup.cfg' ""
|
||||||
'';
|
'';
|
||||||
|
|
||||||
propagatedBuildInputs = with python.pkgs; [
|
dependencies = with python3.pkgs; [
|
||||||
dbus-python
|
dbus-python
|
||||||
icalendar
|
icalendar
|
||||||
jsonpath-ng
|
jsonpath-ng
|
||||||
|
@ -56,7 +38,8 @@ python.pkgs.buildPythonApplication rec {
|
||||||
tzlocal
|
tzlocal
|
||||||
];
|
];
|
||||||
|
|
||||||
nativeCheckInputs = with python.pkgs; [
|
nativeCheckInputs = with python3.pkgs; [
|
||||||
|
dbus
|
||||||
freezegun
|
freezegun
|
||||||
pytest-datadir
|
pytest-datadir
|
||||||
pytest-httpserver
|
pytest-httpserver
|
||||||
|
|
Loading…
Reference in a new issue