diff options
Diffstat (limited to 'pkgs/development/python-modules/contexttimer/default.nix')
-rw-r--r-- | pkgs/development/python-modules/contexttimer/default.nix | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/pkgs/development/python-modules/contexttimer/default.nix b/pkgs/development/python-modules/contexttimer/default.nix index f908783fb0b63..1cba5807e96de 100644 --- a/pkgs/development/python-modules/contexttimer/default.nix +++ b/pkgs/development/python-modules/contexttimer/default.nix @@ -1,9 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, mock -, fetchpatch -, python +{ + lib, + buildPythonPackage, + pythonAtLeast, + fetchFromGitHub, + mock, + fetchpatch, + python, }: buildPythonPackage rec { @@ -11,6 +13,8 @@ buildPythonPackage rec { version = "unstable-2019-03-30"; format = "setuptools"; + disabled = pythonAtLeast "3.12"; + src = fetchFromGitHub { owner = "brouberol"; repo = "contexttimer"; @@ -19,7 +23,7 @@ buildPythonPackage rec { }; patches = [ - # https://github.com/brouberol/contexttimer/pull/16 + # https://github.com/brouberol/contexttimer/pull/16 (fetchpatch { url = "https://github.com/brouberol/contexttimer/commit/dd65871f3f25a523a47a74f2f5306c57048592b0.patch"; hash = "sha256-vNBuFXvuvb6hWPzg4W4iyKbd4N+vofhxsKydEkc25E4="; @@ -36,7 +40,7 @@ buildPythonPackage rec { meta = with lib; { homepage = "https://github.com/brouberol/contexttimer"; - description = "A timer as a context manager"; + description = "Timer as a context manager"; license = licenses.gpl3Only; maintainers = with maintainers; [ atila ]; }; |