Merge pull request #236716 from fabaff/token-bucket-pytest-runner

python311Packages.token-bucket: remove pytest-runner
This commit is contained in:
Martin Weinelt 2023-06-08 23:17:50 +02:00 committed by GitHub
commit 8a7d5c039c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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