2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
2020-04-24 23:36:52 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, click
|
|
|
|
, ecdsa
|
|
|
|
, hidapi
|
|
|
|
, fetchPypi
|
|
|
|
, pyaes
|
|
|
|
, pythonOlder
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "ckcc-protocol";
|
2021-03-23 19:22:30 +00:00
|
|
|
version = "1.1.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-03-23 19:22:30 +00:00
|
|
|
sha256 = "b660225ac06fc06ad17b33ece428126eef785388450e14313f72d25d4082c5ab";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ click ecdsa hidapi pyaes ];
|
|
|
|
|
2021-03-09 03:18:52 +00:00
|
|
|
# Project has no tests
|
|
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "ckcc" ];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Communicate with your Coldcard using Python";
|
|
|
|
homepage = "https://github.com/Coldcard/ckcc-protocol";
|
2021-03-09 03:18:52 +00:00
|
|
|
license = licenses.mit;
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = [ maintainers.hkjn ];
|
|
|
|
};
|
|
|
|
}
|