python311Packages.slowapi: refactor

This commit is contained in:
Fabian Affolter 2024-02-11 09:22:50 +01:00
parent 282d32e76a
commit 7fd329110c

View file

@ -10,7 +10,6 @@
, pytestCheckHook
, pythonAtLeast
, pythonOlder
, pythonRelaxDepsHook
, redis
, starlette
}:
@ -18,29 +17,19 @@
buildPythonPackage rec {
pname = "slowapi";
version = "0.1.9";
format = "pyproject";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "laurentS";
repo = pname;
repo = "slowapi";
rev = "refs/tags/v${version}";
hash = "sha256-R/Mr+Qv22AN7HCDGmAUVh4efU8z4gMIyhC0AuKmxgdE=";
};
pythonRelaxDeps = [
"limits"
];
postPatch = ''
substituteInPlace pyproject.toml \
--replace '["redis^3.4.1"]' '["redis"]'
'';
nativeBuildInputs = [
poetry-core
pythonRelaxDepsHook
];
propagatedBuildInputs = [