Merge pull request #36748 from etu/python-anyjson-fixes
anyjson: move to own directory
This commit is contained in:
commit
80fcfbe4cf
21
pkgs/development/python-modules/anyjson/default.nix
Normal file
21
pkgs/development/python-modules/anyjson/default.nix
Normal file
@ -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";
|
||||||
|
};
|
||||||
|
}
|
@ -466,24 +466,7 @@ in {
|
|||||||
|
|
||||||
alot = callPackage ../development/python-modules/alot {};
|
alot = callPackage ../development/python-modules/alot {};
|
||||||
|
|
||||||
anyjson = buildPythonPackage rec {
|
anyjson = callPackage ../development/python-modules/anyjson {};
|
||||||
name = "anyjson-0.3.3";
|
|
||||||
|
|
||||||
# The tests are written in a python2 syntax but anyjson is python3 valid
|
|
||||||
doCheck = !isPy3k;
|
|
||||||
|
|
||||||
src = pkgs.fetchurl {
|
|
||||||
url = "mirror://pypi/a/anyjson/${name}.tar.gz";
|
|
||||||
sha256 = "37812d863c9ad3e35c0734c42e0bf0320ce8c3bed82cd20ad54cb34d158157ba";
|
|
||||||
};
|
|
||||||
|
|
||||||
buildInputs = with self; [ self.nose ];
|
|
||||||
|
|
||||||
meta = {
|
|
||||||
homepage = https://pypi.python.org/pypi/anyjson/;
|
|
||||||
description = "Wrapper that selects the best available JSON implementation";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
amqp = buildPythonPackage rec {
|
amqp = buildPythonPackage rec {
|
||||||
name = "amqp-${version}";
|
name = "amqp-${version}";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user