3
0
Fork 0
forked from mirrors/nixpkgs

pythonPackages.ecdsa: refactor move to python-modjules

This commit is contained in:
Chris Ostrouchov 2018-10-16 14:20:52 -04:00 committed by Frederik Rietdijk
parent b148467e9b
commit 9d8fa90647
2 changed files with 27 additions and 19 deletions

View file

@ -0,0 +1,26 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, pkgs
}:
buildPythonPackage rec {
pname = "ecdsa";
version = "0.13";
src = fetchPypi {
inherit pname version;
sha256 = "1yj31j0asmrx4an9xvsaj2icdmzy6pw0glfpqrrkrphwdpi1xkv4";
};
# Only needed for tests
buildInputs = [ pkgs.openssl ];
meta = with stdenv.lib; {
description = "ECDSA cryptographic signature library";
homepage = "https://github.com/warner/python-ecdsa";
license = licenses.mit;
maintainers = with maintainers; [ aszlig ];
};
}

View file

@ -2340,25 +2340,7 @@ in {
dtopt = callPackage ../development/python-modules/dtopt { };
ecdsa = buildPythonPackage rec {
name = "ecdsa-${version}";
version = "0.13";
src = pkgs.fetchurl {
url = "mirror://pypi/e/ecdsa/${name}.tar.gz";
sha256 = "1yj31j0asmrx4an9xvsaj2icdmzy6pw0glfpqrrkrphwdpi1xkv4";
};
# Only needed for tests
buildInputs = with self; [ pkgs.openssl ];
meta = {
description = "ECDSA cryptographic signature library";
homepage = "https://github.com/warner/python-ecdsa";
license = licenses.mit;
maintainers = with maintainers; [ aszlig ];
};
};
ecdsa = callPackage ../development/python-modules/ecdsa { };
effect = callPackage ../development/python-modules/effect {};