pythonPackages.jsonrpclib: refactor move to python-modules
This commit is contained in:
parent
036ccbc3ff
commit
d2d4cc9775
2 changed files with 27 additions and 20 deletions
26
pkgs/development/python-modules/jsonrpclib/default.nix
Normal file
26
pkgs/development/python-modules/jsonrpclib/default.nix
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
{ stdenv
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchPypi
|
||||||
|
, cjson
|
||||||
|
, isPy3k
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "jsonrpclib";
|
||||||
|
version = "0.1.7";
|
||||||
|
disabled = isPy3k;
|
||||||
|
|
||||||
|
src = fetchPypi {
|
||||||
|
inherit pname version;
|
||||||
|
sha256 = "02vgirw2bcgvpcxhv5hf3yvvb4h5wzd1lpjx8na5psdmaffj6l3z";
|
||||||
|
};
|
||||||
|
|
||||||
|
propagatedBuildInputs = [ cjson ];
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
|
description = "JSON RPC client library";
|
||||||
|
homepage = https://pypi.python.org/pypi/jsonrpclib/;
|
||||||
|
license = stdenv.lib.licenses.asl20;
|
||||||
|
maintainers = [ stdenv.lib.maintainers.joachifm ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -1928,26 +1928,7 @@ in {
|
||||||
|
|
||||||
jsonpointer = callPackage ../development/python-modules/jsonpointer { };
|
jsonpointer = callPackage ../development/python-modules/jsonpointer { };
|
||||||
|
|
||||||
jsonrpclib = buildPythonPackage rec {
|
jsonrpclib = callPackage ../development/python-modules/jsonrpclib { };
|
||||||
name = "jsonrpclib-${version}";
|
|
||||||
version = "0.1.7";
|
|
||||||
|
|
||||||
disabled = !isPy27;
|
|
||||||
|
|
||||||
src = pkgs.fetchurl {
|
|
||||||
url = "mirror://pypi/j/jsonrpclib/${name}.tar.gz";
|
|
||||||
sha256 = "02vgirw2bcgvpcxhv5hf3yvvb4h5wzd1lpjx8na5psdmaffj6l3z";
|
|
||||||
};
|
|
||||||
|
|
||||||
propagatedBuildInputs = with self; [ cjson ];
|
|
||||||
|
|
||||||
meta = {
|
|
||||||
description = "JSON RPC client library";
|
|
||||||
homepage = https://pypi.python.org/pypi/jsonrpclib/;
|
|
||||||
license = stdenv.lib.licenses.asl20;
|
|
||||||
maintainers = [ stdenv.lib.maintainers.joachifm ];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
jsonrpclib-pelix = callPackage ../development/python-modules/jsonrpclib-pelix {};
|
jsonrpclib-pelix = callPackage ../development/python-modules/jsonrpclib-pelix {};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue