2021-01-25 00:26:54 -08:00
|
|
|
{ lib
|
2018-10-29 12:07:01 -07:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, trezor
|
|
|
|
, libagent
|
|
|
|
, ecdsa
|
|
|
|
, ed25519
|
|
|
|
, mnemonic
|
|
|
|
, keepkey
|
|
|
|
, semver
|
2019-10-17 08:18:11 -07:00
|
|
|
, setuptools
|
2019-09-03 00:01:23 -07:00
|
|
|
, wheel
|
|
|
|
, pinentry
|
2018-10-29 12:07:01 -07:00
|
|
|
}:
|
|
|
|
|
2020-06-08 00:37:17 -07:00
|
|
|
buildPythonPackage rec {
|
2018-10-29 12:07:01 -07:00
|
|
|
pname = "trezor_agent";
|
2020-06-05 23:47:34 -07:00
|
|
|
version = "0.11.0";
|
2018-10-29 12:07:01 -07:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-06-05 23:47:34 -07:00
|
|
|
sha256 = "139d917d6495bf290bcc21da457f84ccd2e74c78b4d59a649e0cdde4288cd20c";
|
2018-10-29 12:07:01 -07:00
|
|
|
};
|
|
|
|
|
2019-10-17 08:18:11 -07:00
|
|
|
propagatedBuildInputs = [ setuptools trezor libagent ecdsa ed25519 mnemonic keepkey semver wheel pinentry ];
|
2018-10-29 12:07:01 -07:00
|
|
|
|
2021-01-03 17:44:04 -08:00
|
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "libagent" ];
|
|
|
|
|
2021-01-10 23:54:33 -08:00
|
|
|
meta = with lib; {
|
2018-10-29 12:07:01 -07:00
|
|
|
description = "Using Trezor as hardware SSH agent";
|
2019-09-03 00:02:03 -07:00
|
|
|
homepage = "https://github.com/romanz/trezor-agent";
|
2018-10-29 12:07:01 -07:00
|
|
|
license = licenses.gpl3;
|
2019-09-22 07:41:56 -07:00
|
|
|
maintainers = with maintainers; [ hkjn np mmahut ];
|
2018-10-29 12:07:01 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|