summary refs log tree commit diff
path: root/pkgs/development/python-modules/python-rapidjson/default.nix
diff options
context:
space:
mode:
authorChris Ostrouchov <chris.ostrouchov@gmail.com>2018-10-25 11:42:36 -0400
committerFrederik Rietdijk <freddyrietdijk@fridh.nl>2018-10-26 16:37:52 +0200
commite3bf962bb8250ecab14c777a81ed72e9e29f691c (patch)
treedbcdf16fbca5ac4335f8121baa9fe5f30f7ee50b /pkgs/development/python-modules/python-rapidjson/default.nix
parentb89aa04c12e53a948d3cf0ef1b6dfba05b9a493e (diff)
downloadnixpkgs-e3bf962bb8250ecab14c777a81ed72e9e29f691c.tar
nixpkgs-e3bf962bb8250ecab14c777a81ed72e9e29f691c.tar.gz
nixpkgs-e3bf962bb8250ecab14c777a81ed72e9e29f691c.tar.bz2
nixpkgs-e3bf962bb8250ecab14c777a81ed72e9e29f691c.tar.lz
nixpkgs-e3bf962bb8250ecab14c777a81ed72e9e29f691c.tar.xz
nixpkgs-e3bf962bb8250ecab14c777a81ed72e9e29f691c.tar.zst
nixpkgs-e3bf962bb8250ecab14c777a81ed72e9e29f691c.zip
python3PAckages.python-rapidjson: init at 0.6.3
Diffstat (limited to 'pkgs/development/python-modules/python-rapidjson/default.nix')
-rw-r--r--pkgs/development/python-modules/python-rapidjson/default.nix37
1 files changed, 37 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/python-rapidjson/default.nix b/pkgs/development/python-modules/python-rapidjson/default.nix
new file mode 100644
index 00000000000..d245d472a00
--- /dev/null
+++ b/pkgs/development/python-modules/python-rapidjson/default.nix
@@ -0,0 +1,37 @@
+{ stdenv
+, buildPythonPackage
+, fetchPypi
+, pythonOlder
+, pytest
+, pytz
+, glibcLocales
+}:
+
+buildPythonPackage rec {
+  version = "0.6.3";
+  pname = "python-rapidjson";
+  disabled = pythonOlder "3.4";
+
+  src = fetchPypi {
+    inherit pname version;
+    sha256 = "0a7729c711d9be2b6c0638ce4851d398e181f2329814668aa7fda6421a5da085";
+  };
+
+  LC_ALL="en_US.utf-8";
+  buildInputs = [ glibcLocales ];
+
+  # buildInputs = [ ];
+  checkInputs = [ pytest pytz ];
+  # propagatedBuildInputs = [ ];
+
+  checkPhase = ''
+    pytest tests
+  '';
+
+  meta = with stdenv.lib; {
+    homepage = https://github.com/python-rapidjson/python-rapidjson;
+    description = "Python wrapper around rapidjson ";
+    license = licenses.mit;
+    maintainers = [ maintainers.costrouc ];
+  };
+}