My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/development/python-modules/ratelimiter/default.nix

43 lines
817 B

{ lib
, buildPythonPackage
, fetchPypi
, pytest-asyncio
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "ratelimiter";
version = "1.2.0.post0";
format = "setuptools";
src = fetchPypi {
inherit pname version;
hash = "sha256-XDldyr273i5ReO8/ibVoowZkVKbdwiO3ZHPawi+JtPc=";
};
checkInputs = [
pytest-asyncio
pytestCheckHook
];
pythonImportsCheck = [
"ratelimiter"
];
preCheck = ''
# Uses out-dated options
rm tests/conftest.py
'';
disabledTests = [
# TypeError: object Lock can't be used in 'await' expression
"test_alock"
];
meta = with lib; {
description = "Simple python rate limiting object";
homepage = "https://github.com/RazerM/ratelimiter";
license = licenses.asl20;
maintainers = with maintainers; [ helkafen ];
};
}