mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-14 06:00:33 +03:00
pythonPackages.rsa: refactor move to python-modules
This commit is contained in:
parent
0f7de34c6a
commit
0e141facab
2 changed files with 27 additions and 18 deletions
26
pkgs/development/python-modules/rsa/default.nix
Normal file
26
pkgs/development/python-modules/rsa/default.nix
Normal 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";
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
|
@ -3648,24 +3648,7 @@ in {
|
||||||
|
|
||||||
rpyc = callPackage ../development/python-modules/rpyc { };
|
rpyc = callPackage ../development/python-modules/rpyc { };
|
||||||
|
|
||||||
rsa = buildPythonPackage rec {
|
rsa = callPackage ../development/python-modules/rsa { };
|
||||||
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";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
Rtree = callPackage ../development/python-modules/Rtree { inherit (pkgs) libspatialindex; };
|
Rtree = callPackage ../development/python-modules/Rtree { inherit (pkgs) libspatialindex; };
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue