mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 08:23:09 +00:00
pythonPackages.rsa: refactor move to python-modules
This commit is contained in:
parent
0f7de34c6a
commit
0e141facab
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 { };
|
||||
|
||||
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; };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user