pythonPackages.jsonrpclib: move expression to python-modules

This commit is contained in:
Joachim Fasting 2018-10-15 10:31:10 +02:00
parent 1a3ae02e66
commit ff473c9ec7
No known key found for this signature in database
GPG Key ID: 5C204DF675C90294
2 changed files with 23 additions and 20 deletions

View File

@ -0,0 +1,22 @@
{ lib, buildPythonPackage, fetchPypi, isPy27, cjson }:
buildPythonPackage rec {
pname = "jsonrpclib";
version = "0.1.7";
disabled = !isPy27;
src = fetchPypi {
inherit pname version;
sha256 = "02vgirw2bcgvpcxhv5hf3yvvb4h5wzd1lpjx8na5psdmaffj6l3z";
};
propagatedBuildInputs = [ cjson ];
meta = {
description = "JSON RPC client library";
homepage = https://pypi.python.org/pypi/jsonrpclib/;
license = lib.licenses.asl20;
maintainers = [ lib.maintainers.joachifm ];
};
}

View File

@ -2835,26 +2835,7 @@ in {
};
};
jsonrpclib = buildPythonPackage rec {
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 = callPackage ../development/python-modules/jsonrpclib { };
jsonrpclib-pelix = callPackage ../development/python-modules/jsonrpclib-pelix {};