2018-08-31 13:44:47 +00:00
|
|
|
{ lib, fetchPypi, buildPythonPackage, isPy3k, future }:
|
2017-05-31 20:23:21 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "ECPy";
|
2020-11-04 14:04:22 +00:00
|
|
|
version = "1.2.5";
|
2018-02-22 00:36:10 +00:00
|
|
|
|
2017-05-31 20:23:21 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-11-04 14:04:22 +00:00
|
|
|
sha256 = "9635cffb9b6ecf7fd7f72aea1665829ac74a1d272006d0057d45a621aae20228";
|
2017-05-31 20:23:21 +00:00
|
|
|
};
|
|
|
|
|
2020-11-29 18:17:37 +00:00
|
|
|
prePatch = ''
|
|
|
|
sed -i "s|reqs.append('future')|pass|" setup.py
|
|
|
|
'';
|
|
|
|
|
2018-08-31 13:44:47 +00:00
|
|
|
propagatedBuildInputs = lib.optional (!isPy3k) future;
|
|
|
|
|
|
|
|
# No tests implemented
|
|
|
|
doCheck = false;
|
2017-05-31 20:23:21 +00:00
|
|
|
|
2020-11-29 18:17:37 +00:00
|
|
|
pythonImportsCheck = [ "ecpy" ];
|
|
|
|
|
2018-08-31 13:44:47 +00:00
|
|
|
meta = with lib; {
|
2017-05-31 20:23:21 +00:00
|
|
|
description = "Pure Pyhton Elliptic Curve Library";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/ubinity/ECPy";
|
2017-05-31 20:23:21 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
};
|
|
|
|
}
|