diff --git a/pkgs/development/python-modules/token-bucket/default.nix b/pkgs/development/python-modules/token-bucket/default.nix index d11db6d03131..497d10d84fe8 100644 --- a/pkgs/development/python-modules/token-bucket/default.nix +++ b/pkgs/development/python-modules/token-bucket/default.nix @@ -2,8 +2,8 @@ , stdenv , buildPythonPackage , fetchFromGitHub -, pytest-runner , pytestCheckHook +, pythonOlder }: buildPythonPackage rec { @@ -11,16 +11,19 @@ buildPythonPackage rec { version = "0.3.0"; format = "setuptools"; + disabled = pythonOlder "3.7"; + src = fetchFromGitHub { owner = "falconry"; repo = pname; - rev = version; - sha256 = "0a703y2d09kvv2l9vq7vc97l4pi2wwq1f2hq783mbw2238jymb3m"; + rev = "refs/tags/${version}"; + hash = "sha256-dazqJRpC8FUHOhgKFzDnIl5CT2L74J2o2Hsm0IQf4Cg="; }; - nativeBuildInputs = [ - pytest-runner - ]; + postPatch = '' + substituteInPlace setup.py \ + --replace "'pytest-runner'" "" + ''; nativeCheckInputs = [ pytestCheckHook @@ -31,6 +34,7 @@ buildPythonPackage rec { meta = with lib; { description = "Token Bucket Implementation for Python Web Apps"; homepage = "https://github.com/falconry/token-bucket"; + changelog = "https://github.com/falconry/token-bucket/releases/tag/${version}"; license = licenses.asl20; maintainers = with maintainers; [ hexa ]; };