From f342547be7c7dc8d98661fa818a2b04cc21f2ffb Mon Sep 17 00:00:00 2001 From: natsukium Date: Sat, 22 Jun 2024 10:19:47 +0900 Subject: [PATCH] python312Packages.trezorctl: refactor --- .../python-modules/trezor/default.nix | 22 +++++-------------- 1 file changed, 5 insertions(+), 17 deletions(-) diff --git a/pkgs/development/python-modules/trezor/default.nix b/pkgs/development/python-modules/trezor/default.nix index 63d6be49723d..9c364c5223ad 100644 --- a/pkgs/development/python-modules/trezor/default.nix +++ b/pkgs/development/python-modules/trezor/default.nix @@ -3,20 +3,14 @@ lib, buildPythonPackage, fetchPypi, - isPy3k, - attrs, click, construct, construct-classes, ecdsa, - hidapi, libusb1, mnemonic, - pillow, - protobuf, requests, - shamir-mnemonic, - simple-rlp, + setuptools, typing-extensions, trezor-udev-rules, pytestCheckHook, @@ -25,29 +19,23 @@ buildPythonPackage rec { pname = "trezor"; version = "0.13.8"; - format = "setuptools"; - - disabled = !isPy3k; + pyproject = true; src = fetchPypi { inherit pname version; hash = "sha256-Y01O3fNWAyV8MhYY2FSMajWyc4Rle2XjsL261jWlfP8="; }; - propagatedBuildInputs = [ - attrs + build-system = [ setuptools ]; + + dependencies = [ click construct construct-classes ecdsa - hidapi libusb1 mnemonic - pillow - protobuf requests - shamir-mnemonic - simple-rlp typing-extensions ] ++ lib.optionals stdenv.isLinux [ trezor-udev-rules ];