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