1{ lib
2, buildPythonPackage
3, click
4, ecdsa
5, hidapi
6, fetchPypi
7, pyaes
8, pythonOlder
9}:
10
11buildPythonPackage rec {
12 pname = "ckcc-protocol";
13 version = "1.1.0";
14 disabled = pythonOlder "3.6";
15
16 src = fetchPypi {
17 inherit pname version;
18 sha256 = "b660225ac06fc06ad17b33ece428126eef785388450e14313f72d25d4082c5ab";
19 };
20
21 propagatedBuildInputs = [ click ecdsa hidapi pyaes ];
22
23 # Project has no tests
24 doCheck = false;
25 pythonImportsCheck = [ "ckcc" ];
26
27 meta = with lib; {
28 description = "Communicate with your Coldcard using Python";
29 homepage = "https://github.com/Coldcard/ckcc-protocol";
30 license = licenses.mit;
31 maintainers = [ maintainers.hkjn ];
32 };
33}