forked from mirrors/nixpkgs
python3Packages.ratelimit: init at 2.2.1
This commit is contained in:
parent
e59a33db58
commit
ce981a9ddd
34
pkgs/development/python-modules/ratelimit/default.nix
Normal file
34
pkgs/development/python-modules/ratelimit/default.nix
Normal file
|
@ -0,0 +1,34 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, pytestCheckHook
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "ratelimit";
|
||||
version = "2.2.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "tomasbasham";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "04hy3hhh5xdqcsz0lx8j18zbj88kh5ik4wyi5d3a5sfy2hx70in2";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
sed -i "/--cov/d" pytest.ini
|
||||
'';
|
||||
|
||||
checkInputs = [ pytestCheckHook ];
|
||||
|
||||
pytestFlagsArray = [ "tests" ];
|
||||
|
||||
pythonImportsCheck = [ "ratelimit" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python API Rate Limit Decorator";
|
||||
homepage = "https://github.com/tomasbasham/ratelimit";
|
||||
license = with licenses; [ mit ];
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
|
@ -6739,6 +6739,8 @@ in {
|
|||
|
||||
rasterio = callPackage ../development/python-modules/rasterio { gdal = pkgs.gdal_2; }; # gdal 3.0 not supported yet
|
||||
|
||||
ratelimit = callPackage ../development/python-modules/ratelimit { };
|
||||
|
||||
ratelimiter = callPackage ../development/python-modules/ratelimiter { };
|
||||
|
||||
raven = callPackage ../development/python-modules/raven { };
|
||||
|
|
Loading…
Reference in a new issue