python3.pkgs.pyrate-limiter_2: init at 2.10.0 (#488243)

This commit is contained in:
dotlambda
2026-02-09 21:03:22 +00:00
committed by GitHub
5 changed files with 42 additions and 22 deletions
+1 -9
View File
@@ -9,15 +9,7 @@ let
python = python3.override {
self = python3;
packageOverrides = self: super: {
pyrate-limiter = super.pyrate-limiter.overridePythonAttrs (oldAttrs: rec {
version = "2.10.0";
src = fetchFromGitHub {
inherit (oldAttrs.src) owner repo;
tag = "v${version}";
hash = "sha256-CPusPeyTS+QyWiMHsU0ii9ZxPuizsqv0wQy3uicrDw0=";
};
doCheck = false;
});
pyrate-limiter = super.pyrate-limiter_2;
};
};
+1 -9
View File
@@ -13,15 +13,7 @@ let
python = python3.override {
self = python3;
packageOverrides = self: super: {
pyrate-limiter = super.pyrate-limiter.overridePythonAttrs (oldAttrs: rec {
version = "2.10.0";
src = fetchFromGitHub {
inherit (oldAttrs.src) owner repo;
tag = "v${version}";
hash = "sha256-CPusPeyTS+QyWiMHsU0ii9ZxPuizsqv0wQy3uicrDw0=";
};
doCheck = false;
});
pyrate-limiter = super.pyrate-limiter_2;
};
};
@@ -0,0 +1,34 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
poetry-core,
}:
buildPythonPackage (finalAttrs: {
pname = "pyrate-limiter";
# nixpkgs-update: no auto update
version = "2.10.0";
pyproject = true;
src = fetchFromGitHub {
owner = "vutran1710";
repo = "PyrateLimiter";
tag = "v${finalAttrs.version}";
hash = "sha256-CPusPeyTS+QyWiMHsU0ii9ZxPuizsqv0wQy3uicrDw0=";
};
build-system = [ poetry-core ];
pythonImportsCheck = [ "pyrate_limiter" ];
passthru.skipBulkUpdate = true;
meta = {
description = "Python Rate-Limiter using Leaky-Bucket Algorimth Family";
homepage = "https://github.com/vutran1710/PyrateLimiter";
changelog = "https://github.com/vutran1710/PyrateLimiter/blob/${finalAttrs.src.tag}/CHANGELOG.md";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ doronbehar ];
};
})
@@ -2,7 +2,7 @@
lib,
buildPythonPackage,
fetchFromGitHub,
poetry-core,
hatchling,
pyrate-limiter,
pytestCheckHook,
requests-mock,
@@ -12,17 +12,17 @@
buildPythonPackage rec {
pname = "requests-ratelimiter";
version = "0.7.0";
version = "0.8.0";
pyproject = true;
src = fetchFromGitHub {
owner = "JWCook";
repo = "requests-ratelimiter";
tag = "v${version}";
hash = "sha256-DS4BzS8AD4axniyV6jVYXWZ6cQLvMPp8tdGoBhYu51o=";
hash = "sha256-/fyZ+fjboAw97FPI6TgcjHRUAJbdNomvh7xJqTrTmuY=";
};
build-system = [ poetry-core ];
build-system = [ hatchling ];
dependencies = [
pyrate-limiter
+2
View File
@@ -14513,6 +14513,8 @@ self: super: with self; {
pyrate-limiter = callPackage ../development/python-modules/pyrate-limiter { };
pyrate-limiter_2 = callPackage ../development/python-modules/pyrate-limiter_2 { };
pyrdfa3 = callPackage ../development/python-modules/pyrdfa3 { };
pyre-extensions = callPackage ../development/python-modules/pyre-extensions { };