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";
|
2021-02-25 03:27:57 +00:00
|
|
|
version = "1.0.3";
|
2019-08-11 23:08:17 +01:00
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-02-25 03:27:57 +00:00
|
|
|
sha256 = "d83a77d94e9563c3fb0e982d847ec88ba6ac45e3e008e5e53729c0b9800097fc";
|
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";
|
2021-02-25 07:25:45 +00:00
|
|
|
license = licenses.mit;
|
2019-08-11 23:08:17 +01:00
|
|
|
maintainers = [ maintainers.hkjn ];
|
|
|
|
};
|
|
|
|
}
|