python311Packages.token-bucket: remove pytest-runner

- add changelog to meta
This commit is contained in:
Fabian Affolter 2023-06-08 21:03:23 +02:00
parent 4c52672699
commit 0f77f645aa

View File

@ -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 ];
};