diff options
author | Elis Hirwing <elis@hirwing.se> | 2018-03-10 13:17:00 +0100 |
---|---|---|
committer | Elis Hirwing <elis@hirwing.se> | 2018-03-10 13:17:00 +0100 |
commit | 282778ccddcee722f427f6fd7b9f20a0cc000762 (patch) | |
tree | 7ea6874c73bf55326544a2770a45c202fe7a276b /pkgs/development/python-modules/anyjson | |
parent | 4d62ada05dd5401f04d5fb58cdb45edfdd5637d5 (diff) | |
download | nixlib-282778ccddcee722f427f6fd7b9f20a0cc000762.tar nixlib-282778ccddcee722f427f6fd7b9f20a0cc000762.tar.gz nixlib-282778ccddcee722f427f6fd7b9f20a0cc000762.tar.bz2 nixlib-282778ccddcee722f427f6fd7b9f20a0cc000762.tar.lz nixlib-282778ccddcee722f427f6fd7b9f20a0cc000762.tar.xz nixlib-282778ccddcee722f427f6fd7b9f20a0cc000762.tar.zst nixlib-282778ccddcee722f427f6fd7b9f20a0cc000762.zip |
anyjson: move to own directory
Diffstat (limited to 'pkgs/development/python-modules/anyjson')
-rw-r--r-- | pkgs/development/python-modules/anyjson/default.nix | 21 |
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 000000000000..ba32cf7ea695 --- /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"; + }; +} |