mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-27 08:04:14 +00:00
36 lines
642 B
Nix
36 lines
642 B
Nix
{
|
|
lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, pytest
|
|
, glibcLocales
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "ratelimiter";
|
|
version = "1.2.0.post0";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "5c395dcabdbbde2e5178ef3f89b568a3066454a6ddc223b76473dac22f89b4f7";
|
|
};
|
|
|
|
LC_ALL = "en_US.utf-8";
|
|
|
|
nativeBuildInputs = [ glibcLocales ];
|
|
|
|
checkInputs = [ pytest ];
|
|
|
|
checkPhase = ''
|
|
py.test tests
|
|
'';
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/RazerM/ratelimiter";
|
|
license = licenses.asl20;
|
|
description = "Simple python rate limiting object";
|
|
maintainers = with maintainers; [ helkafen ];
|
|
};
|
|
}
|
|
|