nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 click,
5 ecdsa,
6 hidapi,
7 fetchPypi,
8 pyaes,
9}:
10
11buildPythonPackage rec {
12 pname = "ckcc-protocol";
13 version = "1.5.0";
14 format = "setuptools";
15
16 src = fetchPypi {
17 inherit pname version;
18 hash = "sha256-Sdb30OtBOn2Txfh9N86yY1JAIxjkwL7/NB+fA8RI10w=";
19 };
20
21 propagatedBuildInputs = [
22 click
23 ecdsa
24 hidapi
25 pyaes
26 ];
27
28 # Project has no tests
29 doCheck = false;
30
31 pythonImportsCheck = [ "ckcc" ];
32
33 meta = {
34 description = "Communicate with your Coldcard using Python";
35 mainProgram = "ckcc";
36 homepage = "https://github.com/Coldcard/ckcc-protocol";
37 license = lib.licenses.mit;
38 maintainers = with lib.maintainers; [ hkjn ];
39 };
40}