1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pytestCheckHook, 6 pytest-cov-stub, 7}: 8 9buildPythonPackage rec { 10 pname = "ratelimit"; 11 version = "2.2.1"; 12 format = "setuptools"; 13 14 src = fetchFromGitHub { 15 owner = "tomasbasham"; 16 repo = "ratelimit"; 17 rev = "v${version}"; 18 sha256 = "04hy3hhh5xdqcsz0lx8j18zbj88kh5ik4wyi5d3a5sfy2hx70in2"; 19 }; 20 21 nativeCheckInputs = [ 22 pytestCheckHook 23 pytest-cov-stub 24 ]; 25 26 enabledTestPaths = [ "tests" ]; 27 28 pythonImportsCheck = [ "ratelimit" ]; 29 30 meta = with lib; { 31 description = "Python API Rate Limit Decorator"; 32 homepage = "https://github.com/tomasbasham/ratelimit"; 33 license = with licenses; [ mit ]; 34 maintainers = with maintainers; [ fab ]; 35 }; 36}