Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / ratelimit / default.nix
blob7a1af77df0e26c953aa6c3d5dcc1b6836abcbae3
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , pytestCheckHook
5 }:
7 buildPythonPackage rec {
8   pname = "ratelimit";
9   version = "2.2.1";
11   src = fetchFromGitHub {
12     owner = "tomasbasham";
13     repo = pname;
14     rev = "v${version}";
15     sha256 = "04hy3hhh5xdqcsz0lx8j18zbj88kh5ik4wyi5d3a5sfy2hx70in2";
16   };
18   postPatch = ''
19     sed -i "/--cov/d" pytest.ini
20   '';
22   nativeCheckInputs = [ pytestCheckHook ];
24   pytestFlagsArray = [ "tests" ];
26   pythonImportsCheck = [ "ratelimit" ];
28   meta = with lib; {
29     description = "Python API Rate Limit Decorator";
30     homepage = "https://github.com/tomasbasham/ratelimit";
31     license = with licenses; [ mit ];
32     maintainers = with maintainers; [ fab ];
33   };