35 lines
697 B
Nix
35 lines
697 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";
|
|
};
|
|
|
|
propagatedBuildInputs = [ click ecdsa hidapi pyaes ];
|
|
|
|
# Project has no tests
|
|
doCheck = false;
|
|
pythonImportsCheck = [ "ckcc" ];
|
|
|
|
meta = with lib; {
|
|
description = "Communicate with your Coldcard using Python";
|
|
homepage = "https://github.com/Coldcard/ckcc-protocol";
|
|
license = licenses.mit;
|
|
maintainers = [ maintainers.hkjn ];
|
|
};
|
|
}
|