2020-04-24 23:36:52 +00:00
|
|
|
{ lib, fetchPypi, buildPythonPackage, isPy3k, future }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2024-04-21 15:54:59 +00:00
|
|
|
pname = "ecpy";
|
2020-11-19 00:13:47 +00:00
|
|
|
version = "1.2.5";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
2024-04-21 15:54:59 +00:00
|
|
|
pname = "ECPy";
|
|
|
|
inherit version;
|
2020-11-19 00:13:47 +00:00
|
|
|
sha256 = "9635cffb9b6ecf7fd7f72aea1665829ac74a1d272006d0057d45a621aae20228";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2020-11-30 08:33:03 +00:00
|
|
|
prePatch = ''
|
|
|
|
sed -i "s|reqs.append('future')|pass|" setup.py
|
|
|
|
'';
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
propagatedBuildInputs = lib.optional (!isPy3k) future;
|
|
|
|
|
|
|
|
# No tests implemented
|
|
|
|
doCheck = false;
|
|
|
|
|
2020-11-30 08:33:03 +00:00
|
|
|
pythonImportsCheck = [ "ecpy" ];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Pure Pyhton Elliptic Curve Library";
|
|
|
|
homepage = "https://github.com/ubinity/ECPy";
|
|
|
|
license = licenses.asl20;
|
|
|
|
};
|
|
|
|
}
|