2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2019-08-11 23:08:17 +01:00
|
|
|
, buildPythonPackage
|
|
|
|
, click
|
|
|
|
, ecdsa
|
|
|
|
, hidapi
|
|
|
|
, fetchPypi
|
|
|
|
, pytest
|
|
|
|
, pyaes
|
|
|
|
, pythonOlder
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "ckcc-protocol";
|
2020-07-06 16:05:32 +01:00
|
|
|
version = "1.0.2";
|
2019-08-11 23:08:17 +01:00
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-07-06 16:05:32 +01:00
|
|
|
sha256 = "0zpn3miyapskw6s71v614pmga5zfain9j085axm9v50b8r71xh1i";
|
2019-08-11 23:08:17 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytest
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ click ecdsa hidapi pyaes ];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2019-08-11 23:08:17 +01:00
|
|
|
description = "Communicate with your Coldcard using Python";
|
2020-03-03 03:27:33 +00:00
|
|
|
homepage = "https://github.com/Coldcard/ckcc-protocol";
|
2019-08-11 23:08:17 +01:00
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = [ maintainers.hkjn ];
|
|
|
|
};
|
|
|
|
}
|