2019-08-12 00:08:17 +02:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, click
|
|
|
|
, ecdsa
|
|
|
|
, hidapi
|
|
|
|
, lib
|
|
|
|
, fetchPypi
|
|
|
|
, pytest
|
|
|
|
, pyaes
|
|
|
|
, pythonOlder
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "ckcc-protocol";
|
2020-03-03 04:27:33 +01:00
|
|
|
version = "1.0.1";
|
2019-08-12 00:08:17 +02:00
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-03-03 04:27:33 +01:00
|
|
|
sha256 = "13ihbhjgxyn1xvrbppjvnqm199q5fdwrljs0wm16iwyl56kf3wh3";
|
2019-08-12 00:08:17 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytest
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ click ecdsa hidapi pyaes ];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Communicate with your Coldcard using Python";
|
2020-03-03 04:27:33 +01:00
|
|
|
homepage = "https://github.com/Coldcard/ckcc-protocol";
|
2019-08-12 00:08:17 +02:00
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = [ maintainers.hkjn ];
|
|
|
|
};
|
|
|
|
}
|