diff --git a/pkgs/development/python-modules/ledger_agent/default.nix b/pkgs/development/python-modules/ledger_agent/default.nix new file mode 100644 index 000000000000..4aaecf6bc76c --- /dev/null +++ b/pkgs/development/python-modules/ledger_agent/default.nix @@ -0,0 +1,29 @@ +{ stdenv +, buildPythonPackage +, fetchPypi +, ledgerblue +, setuptools +, libagent +, wheel +}: + +buildPythonPackage rec { + pname = "ledger_agent"; + version = "0.9.0"; + + src = fetchPypi { + inherit pname version; + sha256 = "03zj602m2rln9yvr08dswy56vzkbldp8b074ixwzz525dafblr92"; + }; + + propagatedBuildInputs = [ + ledgerblue libagent setuptools wheel + ]; + + meta = with stdenv.lib; { + description = "Using Ledger as hardware-based SSH/PGP agent"; + homepage = https://github.com/romanz/trezor-agent; + license = licenses.gpl3; + maintainers = with maintainers; [ hkjn np mmahut ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 0aa35dc6b930..41aba2ee04a8 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -22309,6 +22309,8 @@ in inherit (darwin.apple_sdk.frameworks) IOKit; }; + ledger_agent = with python3Packages; toPythonApplication ledger_agent; + ledger-live-desktop = callPackage ../applications/blockchains/ledger-live-desktop { }; litecoin = callPackage ../applications/blockchains/litecoin.nix { diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 2321821a536e..89393fe3f3a3 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -6006,6 +6006,8 @@ in { libagent = callPackage ../development/python-modules/libagent { }; + ledger_agent = callPackage ../development/python-modules/ledger_agent { }; + ledgerblue = callPackage ../development/python-modules/ledgerblue { }; ecpy = callPackage ../development/python-modules/ecpy { };