567e8dfd8e
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
44 lines
758 B
Nix
44 lines
758 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 = {
|
|
description = "Communicate with your Coldcard using Python";
|
|
mainProgram = "ckcc";
|
|
homepage = "https://github.com/Coldcard/ckcc-protocol";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ hkjn ];
|
|
};
|
|
}
|