python310Packages.aiolimiter: 1.0.0 -> 1.1.0

Changelog: https://github.com/mjpieters/aiolimiter/blob/v1.1.0/CHANGELOG.md
This commit is contained in:
Fabian Affolter 2023-05-09 18:49:44 +02:00
parent 1e237b7c3c
commit 9cc83e5bd6

View File

@ -1,7 +1,6 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, fetchpatch
, poetry-core
, importlib-metadata
, pytest-asyncio
@ -12,7 +11,7 @@
buildPythonPackage rec {
pname = "aiolimiter";
version = "1.0.0";
version = "1.1.0";
format = "pyproject";
disabled = pythonOlder "3.7";
@ -21,7 +20,7 @@ buildPythonPackage rec {
owner = "mjpieters";
repo = pname;
rev = "v${version}";
hash = "sha256-4wByVZoOLhrXFx9oK19GBmRcjGoJolQ3Gwx9vQV/n8s=";
hash = "sha256-BpLh9utf2oJe+83rsIZeV5+MjbJ3aO5slMNVbUywQIo=";
};
nativeBuildInputs = [
@ -38,15 +37,6 @@ buildPythonPackage rec {
toml
];
patches = [
# Switch to poetry-core, https://github.com/mjpieters/aiolimiter/pull/77
(fetchpatch {
name = "switch-to-peotry-core.patch";
url = "https://github.com/mjpieters/aiolimiter/commit/84a85eff42621b0daff8fcf6bb485db313faae0b.patch";
hash = "sha256-xUfJwLvMF2Xt/V1bKBFn/fjn1uyw7bGNo9RpWxtyr50=";
})
];
postPatch = ''
substituteInPlace tox.ini \
--replace " --cov=aiolimiter --cov-config=tox.ini --cov-report term-missing" ""
@ -59,6 +49,7 @@ buildPythonPackage rec {
meta = with lib; {
description = "Implementation of a rate limiter for asyncio";
homepage = "https://github.com/mjpieters/aiolimiter";
changelog = "https://github.com/mjpieters/aiolimiter/blob/v${version}/CHANGELOG.md";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};