forked from mirrors/nixpkgs
35 lines
652 B
Nix
35 lines
652 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, click
|
|
, ecdsa
|
|
, hidapi
|
|
, fetchPypi
|
|
, pytest
|
|
, pyaes
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "ckcc-protocol";
|
|
version = "1.0.3";
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "d83a77d94e9563c3fb0e982d847ec88ba6ac45e3e008e5e53729c0b9800097fc";
|
|
};
|
|
|
|
checkInputs = [
|
|
pytest
|
|
];
|
|
|
|
propagatedBuildInputs = [ click ecdsa hidapi pyaes ];
|
|
|
|
meta = with lib; {
|
|
description = "Communicate with your Coldcard using Python";
|
|
homepage = "https://github.com/Coldcard/ckcc-protocol";
|
|
license = licenses.mit;
|
|
maintainers = [ maintainers.hkjn ];
|
|
};
|
|
}
|