@@ -0,0 +1,35 @@
1+{ stdenv
2+, buildPythonPackage
3+, click
4+, ecdsa
5+, hidapi
6+, lib
7+, fetchPypi
8+, pytest
9+, pyaes
10+, pythonOlder
11+}:
12+
13+buildPythonPackage rec {
14+ pname = "ckcc-protocol";
15+ version = "0.8.0";
16+ disabled = pythonOlder "3.6";
17+
18+ src = fetchPypi {
19+ inherit pname version;
20+ sha256 = "1mbs9l8qycy50j5lq6az7l5d8i40nb0vmlyhcyax298qp6c1r1gh";
21+ };
22+
23+ checkInputs = [
24+ pytest
25+ ];
26+
27+ propagatedBuildInputs = [ click ecdsa hidapi pyaes ];
28+
29+ meta = with stdenv.lib; {
30+ description = "Communicate with your Coldcard using Python";
31+ homepage = https://github.com/Coldcard/ckcc-protocol;
32+ license = licenses.gpl3;
33+ maintainers = [ maintainers.hkjn ];
34+ };
35+}