fa5436e0a7
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
43 lines
760 B
Nix
43 lines
760 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
click,
|
|
ecdsa,
|
|
hidapi,
|
|
fetchPypi,
|
|
pyaes,
|
|
pythonOlder,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "ckcc-protocol";
|
|
version = "1.4.0";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-zZPU0+MwjqRYCqa+W0YTqCZv2WsMwa9R5xaN7ye77OU=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
click
|
|
ecdsa
|
|
hidapi
|
|
pyaes
|
|
];
|
|
|
|
# Project has no tests
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "ckcc" ];
|
|
|
|
meta = with lib; {
|
|
description = "Communicate with your Coldcard using Python";
|
|
mainProgram = "ckcc";
|
|
homepage = "https://github.com/Coldcard/ckcc-protocol";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ hkjn ];
|
|
};
|
|
}
|