summary refs log tree commit diff
path: root/pkgs/development/python-modules/anyjson
diff options
context:
space:
mode:
authorElis Hirwing <elis@hirwing.se>2018-03-10 13:17:00 +0100
committerElis Hirwing <elis@hirwing.se>2018-03-10 13:17:00 +0100
commit282778ccddcee722f427f6fd7b9f20a0cc000762 (patch)
tree7ea6874c73bf55326544a2770a45c202fe7a276b /pkgs/development/python-modules/anyjson
parent4d62ada05dd5401f04d5fb58cdb45edfdd5637d5 (diff)
downloadnixpkgs-282778ccddcee722f427f6fd7b9f20a0cc000762.tar
nixpkgs-282778ccddcee722f427f6fd7b9f20a0cc000762.tar.gz
nixpkgs-282778ccddcee722f427f6fd7b9f20a0cc000762.tar.bz2
nixpkgs-282778ccddcee722f427f6fd7b9f20a0cc000762.tar.lz
nixpkgs-282778ccddcee722f427f6fd7b9f20a0cc000762.tar.xz
nixpkgs-282778ccddcee722f427f6fd7b9f20a0cc000762.tar.zst
nixpkgs-282778ccddcee722f427f6fd7b9f20a0cc000762.zip
anyjson: move to own directory
Diffstat (limited to 'pkgs/development/python-modules/anyjson')
-rw-r--r--pkgs/development/python-modules/anyjson/default.nix21
1 files changed, 21 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/anyjson/default.nix b/pkgs/development/python-modules/anyjson/default.nix
new file mode 100644
index 00000000000..ba32cf7ea69
--- /dev/null
+++ b/pkgs/development/python-modules/anyjson/default.nix
@@ -0,0 +1,21 @@
+{ stdenv, buildPythonPackage, fetchPypi, isPy3k, nose }:
+
+buildPythonPackage rec {
+  pname = "anyjson";
+  version = "0.3.3";
+
+  # The tests are written in a python2 syntax but anyjson is python3 valid
+  doCheck = !isPy3k;
+
+  src = fetchPypi {
+    inherit pname version;
+    sha256 = "37812d863c9ad3e35c0734c42e0bf0320ce8c3bed82cd20ad54cb34d158157ba";
+  };
+
+  buildInputs = [ nose ];
+
+  meta = {
+    homepage = https://pypi.python.org/pypi/anyjson/;
+    description = "Wrapper that selects the best available JSON implementation";
+  };
+}