2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
trezor,
|
|
|
|
libagent,
|
|
|
|
ecdsa,
|
|
|
|
ed25519,
|
|
|
|
mnemonic,
|
|
|
|
keepkey,
|
|
|
|
semver,
|
|
|
|
setuptools,
|
|
|
|
wheel,
|
|
|
|
pinentry,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
2020-06-18 07:06:33 +00:00
|
|
|
buildPythonPackage rec {
|
2024-01-13 08:15:51 +00:00
|
|
|
pname = "trezor-agent";
|
2022-08-12 12:06:08 +00:00
|
|
|
version = "0.12.0";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
2024-01-13 08:15:51 +00:00
|
|
|
pname = "trezor_agent";
|
|
|
|
inherit version;
|
2023-03-15 16:39:30 +00:00
|
|
|
hash = "sha256-4IylpUvXZYAXFkyFGNbN9iPTsHff3M/RL2Eq9f7wWFU=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
trezor
|
|
|
|
libagent
|
|
|
|
ecdsa
|
|
|
|
ed25519
|
|
|
|
mnemonic
|
|
|
|
keepkey
|
|
|
|
semver
|
|
|
|
wheel
|
|
|
|
pinentry
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-12-26 17:43:05 +00:00
|
|
|
# relax dependency constraint
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py \
|
|
|
|
--replace "trezor[hidapi]>=0.12.0,<0.13" "trezor[hidapi]>=0.12.0,<0.14"
|
|
|
|
'';
|
|
|
|
|
2021-01-09 10:05:03 +00:00
|
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "libagent" ];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Using Trezor as hardware SSH agent";
|
|
|
|
homepage = "https://github.com/romanz/trezor-agent";
|
|
|
|
license = licenses.gpl3;
|
2024-06-05 15:53:02 +00:00
|
|
|
maintainers = with maintainers; [
|
|
|
|
hkjn
|
|
|
|
np
|
|
|
|
mmahut
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|