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