mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-13 09:13:17 +00:00
36 lines
657 B
Nix
36 lines
657 B
Nix
{ stdenv
|
|
, buildPythonPackage
|
|
, click
|
|
, ecdsa
|
|
, hidapi
|
|
, lib
|
|
, fetchPypi
|
|
, pytest
|
|
, pyaes
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "ckcc-protocol";
|
|
version = "1.0.2";
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "0zpn3miyapskw6s71v614pmga5zfain9j085axm9v50b8r71xh1i";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|