1{ lib
2, buildPythonPackage
3, fetchPypi
4, trezor
5, libagent
6, ecdsa
7, ed25519
8, mnemonic
9, keepkey
10, semver
11, setuptools
12, wheel
13, pinentry
14}:
15
16buildPythonPackage rec {
17 pname = "trezor_agent";
18 version = "0.12.0";
19
20 src = fetchPypi {
21 inherit pname version;
22 sha256 = "sha256-4IylpUvXZYAXFkyFGNbN9iPTsHff3M/RL2Eq9f7wWFU=";
23 };
24
25 propagatedBuildInputs = [ setuptools trezor libagent ecdsa ed25519 mnemonic keepkey semver wheel pinentry ];
26
27 # relax dependency constraint
28 postPatch = ''
29 substituteInPlace setup.py \
30 --replace "trezor[hidapi]>=0.12.0,<0.13" "trezor[hidapi]>=0.12.0,<0.14"
31 '';
32
33 doCheck = false;
34 pythonImportsCheck = [ "libagent" ];
35
36 meta = with lib; {
37 description = "Using Trezor as hardware SSH agent";
38 homepage = "https://github.com/romanz/trezor-agent";
39 license = licenses.gpl3;
40 maintainers = with maintainers; [ hkjn np mmahut ];
41 };
42
43}