summary refs log tree commit diff
path: root/pkgs/development/python-modules/ckcc-protocol/default.nix
blob: 599f91f2d07004fedd58b0f9b75c6003c1ca0d60 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
{ stdenv
, buildPythonPackage
, click
, ecdsa
, hidapi
, lib
, fetchPypi
, pytest
, pyaes
, pythonOlder
}:

buildPythonPackage rec {
  pname = "ckcc-protocol";
  version = "0.8.0";
  disabled = pythonOlder "3.6";

  src = fetchPypi {
    inherit pname version;
    sha256 = "1mbs9l8qycy50j5lq6az7l5d8i40nb0vmlyhcyax298qp6c1r1gh";
  };

  checkInputs = [
    pytest
  ];

  propagatedBuildInputs = [ click ecdsa hidapi pyaes ];

  meta = with stdenv.lib; {
    description = "Communicate with your Coldcard using Python";
    homepage = https://github.com/Coldcard/ckcc-protocol;
    license = licenses.gpl3;
    maintainers = [ maintainers.hkjn ];
  };
}