2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
click,
|
|
|
|
ecdsa,
|
|
|
|
hidapi,
|
|
|
|
fetchPypi,
|
|
|
|
pyaes,
|
|
|
|
pythonOlder,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "ckcc-protocol";
|
2023-10-09 19:29:22 +00:00
|
|
|
version = "1.4.0";
|
|
|
|
format = "setuptools";
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-10-09 19:29:22 +00:00
|
|
|
hash = "sha256-zZPU0+MwjqRYCqa+W0YTqCZv2WsMwa9R5xaN7ye77OU=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
click
|
|
|
|
ecdsa
|
|
|
|
hidapi
|
|
|
|
pyaes
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-03-09 03:18:52 +00:00
|
|
|
# Project has no tests
|
|
|
|
doCheck = false;
|
2023-10-09 19:29:22 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "ckcc" ];
|
2021-03-09 03:18:52 +00:00
|
|
|
|
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";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "ckcc";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/Coldcard/ckcc-protocol";
|
2021-03-09 03:18:52 +00:00
|
|
|
license = licenses.mit;
|
2023-10-09 19:29:22 +00:00
|
|
|
maintainers = with maintainers; [ hkjn ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|