2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2019-08-11 23:08:17 +01:00
|
|
|
, buildPythonPackage
|
|
|
|
, click
|
|
|
|
, ecdsa
|
|
|
|
, hidapi
|
|
|
|
, fetchPypi
|
|
|
|
, pyaes
|
|
|
|
, pythonOlder
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "ckcc-protocol";
|
2021-03-17 05:51:53 +00:00
|
|
|
version = "1.1.0";
|
2019-08-11 23:08:17 +01:00
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-03-17 05:51:53 +00:00
|
|
|
sha256 = "b660225ac06fc06ad17b33ece428126eef785388450e14313f72d25d4082c5ab";
|
2019-08-11 23:08:17 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ click ecdsa hidapi pyaes ];
|
|
|
|
|
2021-02-25 07:27:04 +00:00
|
|
|
# Project has no tests
|
|
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "ckcc" ];
|
|
|
|
|
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";
|
2021-02-25 07:25:45 +00:00
|
|
|
license = licenses.mit;
|
2019-08-11 23:08:17 +01:00
|
|
|
maintainers = [ maintainers.hkjn ];
|
|
|
|
};
|
|
|
|
}
|