summary refs log tree commit diff
path: root/pkgs/development/python-modules/ratelimiter
diff options
context:
space:
mode:
authorSebastian Meric de Bellefon <sebastian.meric.de.bellefon@umontreal.ca>2018-08-29 10:26:46 -0400
committerSebastian de Bellefon <arnaudpourseb@gmail.com>2018-08-31 08:57:28 -0400
commitc49e507bbc3286827d4610b08f1ccc18463e25b0 (patch)
treee5055379dfad160242a18eb51a1bbe7b396fe719 /pkgs/development/python-modules/ratelimiter
parentc66c46943380a2f09df07c913098f5feeae5c6cf (diff)
downloadnixlib-c49e507bbc3286827d4610b08f1ccc18463e25b0.tar
nixlib-c49e507bbc3286827d4610b08f1ccc18463e25b0.tar.gz
nixlib-c49e507bbc3286827d4610b08f1ccc18463e25b0.tar.bz2
nixlib-c49e507bbc3286827d4610b08f1ccc18463e25b0.tar.lz
nixlib-c49e507bbc3286827d4610b08f1ccc18463e25b0.tar.xz
nixlib-c49e507bbc3286827d4610b08f1ccc18463e25b0.tar.zst
nixlib-c49e507bbc3286827d4610b08f1ccc18463e25b0.zip
python.pkgs.ratelimiter: init at 1.2.0.post0
Diffstat (limited to 'pkgs/development/python-modules/ratelimiter')
-rw-r--r--pkgs/development/python-modules/ratelimiter/default.nix35
1 files changed, 35 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/ratelimiter/default.nix b/pkgs/development/python-modules/ratelimiter/default.nix
new file mode 100644
index 000000000000..375b6639368e
--- /dev/null
+++ b/pkgs/development/python-modules/ratelimiter/default.nix
@@ -0,0 +1,35 @@
+{
+  stdenv
+, 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 stdenv.lib; {
+    homepage = https://github.com/RazerM/ratelimiter;
+    license = licenses.asl20;
+    description = "Simple python rate limiting object";
+    maintainers = with maintainers; [ helkafen ];
+  };
+}
+