2018-02-22 00:36:10 +00:00
|
|
|
{ stdenv, fetchPypi, buildPythonPackage, isPy3k, hidapi
|
2018-07-21 01:44:44 +01:00
|
|
|
, pycrypto, pillow, protobuf, future
|
2017-05-31 21:23:21 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "ECPy";
|
2018-08-13 08:23:44 +01:00
|
|
|
version = "0.9.1";
|
2017-05-31 21:23:21 +01:00
|
|
|
|
2018-02-22 00:36:10 +00:00
|
|
|
disabled = !isPy3k;
|
|
|
|
|
2017-05-31 21:23:21 +01:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-08-13 08:23:44 +01:00
|
|
|
sha256 = "f0df66be67f3de0152dfb3c453f4247bdfa2b4e37aa75b98617a637376032229";
|
2017-05-31 21:23:21 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ hidapi pycrypto pillow protobuf future ];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Pure Pyhton Elliptic Curve Library";
|
2017-08-01 21:03:30 +01:00
|
|
|
homepage = https://github.com/ubinity/ECPy;
|
2017-05-31 21:23:21 +01:00
|
|
|
license = licenses.asl20;
|
|
|
|
};
|
|
|
|
}
|