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