aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/development/python-modules/anyjson
diff options
context:
space:
mode:
authorKatharina Fey <kookie@spacekookie.de>2019-10-05 12:43:18 +0000
committerKatharina Fey <kookie@spacekookie.de>2019-10-05 12:44:52 +0000
commitcf85056ba64caf3267d43255ef4a1243e9c8ee3b (patch)
tree3051519e9c8275b870aac43f80af875715c9d124 /nixpkgs/pkgs/development/python-modules/anyjson
parent1148b1d122bc03e9a3665856c9b7bb96bd4e3994 (diff)
parent2436c27541b2f52deea3a4c1691216a02152e729 (diff)
Add 'nixpkgs/' from commit '2436c27541b2f52deea3a4c1691216a02152e729'
git-subtree-dir: nixpkgs git-subtree-mainline: 1148b1d122bc03e9a3665856c9b7bb96bd4e3994 git-subtree-split: 2436c27541b2f52deea3a4c1691216a02152e729
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/anyjson')
-rw-r--r--nixpkgs/pkgs/development/python-modules/anyjson/default.nix22
1 files changed, 22 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/anyjson/default.nix b/nixpkgs/pkgs/development/python-modules/anyjson/default.nix
new file mode 100644
index 00000000000..65476b47f8f
--- /dev/null
+++ b/nixpkgs/pkgs/development/python-modules/anyjson/default.nix
@@ -0,0 +1,22 @@
+{ lib, 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 = with lib; {
+ homepage = https://bitbucket.org/runeh/anyjson/;
+ description = "Wrapper that selects the best available JSON implementation";
+ license = licenses.bsd2;
+ };
+}