at master 685 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 decorator, 6}: 7 8buildPythonPackage rec { 9 pname = "ratelim"; 10 version = "0.1.6"; 11 format = "setuptools"; 12 13 src = fetchPypi { 14 inherit pname version; 15 sha256 = "07dirdd8y23706110nb0lfz5pzbrcvd9y74h64la3y8igqbk4vc2"; 16 }; 17 18 propagatedBuildInputs = [ decorator ]; 19 20 pythonImportsCheck = [ "ratelim" ]; 21 22 # package has no tests 23 doCheck = false; 24 25 meta = with lib; { 26 homepage = "https://github.com/themiurgo/ratelim"; 27 description = "Simple Python library that limits the number of times a function can be called during a time interval"; 28 license = licenses.mit; 29 maintainers = with maintainers; [ dgliwka ]; 30 }; 31}