pythonPackages.rsa: refactor move to python-modules

This commit is contained in:
Chris Ostrouchov 2018-10-26 12:51:37 -04:00 committed by Frederik Rietdijk
parent 0f7de34c6a
commit 0e141facab
2 changed files with 27 additions and 18 deletions

View File

@ -0,0 +1,26 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, unittest2
, pyasn1
}:
buildPythonPackage rec {
pname = "rsa";
version = "3.4.2";
src = fetchPypi {
inherit pname version;
sha256 = "1dcxvszbikgzh99ybdc7jq0zb9wspy2ds8z9mjsqiyv3q884xpr5";
};
nativeBuildInputs = [ unittest2 ];
propagatedBuildInputs = [ pyasn1 ];
meta = with stdenv.lib; {
homepage = https://stuvel.eu/rsa;
license = licenses.asl20;
description = "A pure-Python RSA implementation";
};
}

View File

@ -3648,24 +3648,7 @@ in {
rpyc = callPackage ../development/python-modules/rpyc { };
rsa = buildPythonPackage rec {
name = "rsa-${version}";
version = "3.4.2";
src = pkgs.fetchurl {
url = "mirror://pypi/r/rsa/${name}.tar.gz";
sha256 = "1dcxvszbikgzh99ybdc7jq0zb9wspy2ds8z9mjsqiyv3q884xpr5";
};
nativeBuildInputs = with self; [ unittest2 ];
propagatedBuildInputs = with self; [ pyasn1 ];
meta = {
homepage = https://stuvel.eu/rsa;
license = licenses.asl20;
description = "A pure-Python RSA implementation";
};
};
rsa = callPackage ../development/python-modules/rsa { };
Rtree = callPackage ../development/python-modules/Rtree { inherit (pkgs) libspatialindex; };