Merge pull request #236716 from fabaff/token-bucket-pytest-runner
python311Packages.token-bucket: remove pytest-runner
This commit is contained in:
commit
8a7d5c039c
1 changed files with 10 additions and 6 deletions
|
@ -2,8 +2,8 @@
|
||||||
, stdenv
|
, stdenv
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, pytest-runner
|
|
||||||
, pytestCheckHook
|
, pytestCheckHook
|
||||||
|
, pythonOlder
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
|
@ -11,16 +11,19 @@ buildPythonPackage rec {
|
||||||
version = "0.3.0";
|
version = "0.3.0";
|
||||||
format = "setuptools";
|
format = "setuptools";
|
||||||
|
|
||||||
|
disabled = pythonOlder "3.7";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "falconry";
|
owner = "falconry";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = version;
|
rev = "refs/tags/${version}";
|
||||||
sha256 = "0a703y2d09kvv2l9vq7vc97l4pi2wwq1f2hq783mbw2238jymb3m";
|
hash = "sha256-dazqJRpC8FUHOhgKFzDnIl5CT2L74J2o2Hsm0IQf4Cg=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [
|
postPatch = ''
|
||||||
pytest-runner
|
substituteInPlace setup.py \
|
||||||
];
|
--replace "'pytest-runner'" ""
|
||||||
|
'';
|
||||||
|
|
||||||
nativeCheckInputs = [
|
nativeCheckInputs = [
|
||||||
pytestCheckHook
|
pytestCheckHook
|
||||||
|
@ -31,6 +34,7 @@ buildPythonPackage rec {
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Token Bucket Implementation for Python Web Apps";
|
description = "Token Bucket Implementation for Python Web Apps";
|
||||||
homepage = "https://github.com/falconry/token-bucket";
|
homepage = "https://github.com/falconry/token-bucket";
|
||||||
|
changelog = "https://github.com/falconry/token-bucket/releases/tag/${version}";
|
||||||
license = licenses.asl20;
|
license = licenses.asl20;
|
||||||
maintainers = with maintainers; [ hexa ];
|
maintainers = with maintainers; [ hexa ];
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue