46 lines
870 B
Nix
46 lines
870 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
certifi,
|
|
cryptography,
|
|
ecdsa,
|
|
pyaes,
|
|
pyopenssl,
|
|
pyscard,
|
|
pythonOlder,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pysatochip";
|
|
version = "0.17.0";
|
|
format = "setuptools";
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "toporin";
|
|
repo = "pysatochip";
|
|
tag = "v${version}";
|
|
hash = "sha256-9QenE9YpgrKwiN9kpS+KWdqFeba7AGXDneW5p+9/t1A=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
cryptography
|
|
ecdsa
|
|
pyaes
|
|
pyopenssl
|
|
pyscard
|
|
];
|
|
|
|
nativeCheckInputs = [ certifi ];
|
|
|
|
pythonImportsCheck = [ "pysatochip" ];
|
|
|
|
meta = with lib; {
|
|
description = "Simple python library to communicate with a Satochip hardware wallet";
|
|
homepage = "https://github.com/Toporin/pysatochip";
|
|
license = licenses.lgpl3Only;
|
|
maintainers = with maintainers; [ oxalica ];
|
|
};
|
|
}
|