From 89e77823854026acf7b24fa38b7ad8087ac579c3 Mon Sep 17 00:00:00 2001 From: afreakk Date: Sun, 24 Jul 2022 12:10:08 +0200 Subject: [PATCH] libagent: 0.14.4 -> 0.14.5 --- .../python-modules/bech32/default.nix | 22 ++++++++++ .../python-modules/libagent/default.nix | 41 +++++++++++++++---- pkgs/top-level/python-packages.nix | 2 + 3 files changed, 58 insertions(+), 7 deletions(-) create mode 100644 pkgs/development/python-modules/bech32/default.nix diff --git a/pkgs/development/python-modules/bech32/default.nix b/pkgs/development/python-modules/bech32/default.nix new file mode 100644 index 000000000000..33b9044d758f --- /dev/null +++ b/pkgs/development/python-modules/bech32/default.nix @@ -0,0 +1,22 @@ +{ lib +, buildPythonPackage +, fetchPypi +, pytestCheckHook +, pythonOlder +}: +buildPythonPackage rec { + pname = "bech32"; + version = "1.2.0"; + + disabled = pythonOlder "3.5"; + + src = fetchPypi { + inherit pname version; + sha256 = "sha256-fW24IUYDvXhx/PpsCCbvaLhbCr2Q+iHChanF4h0r2Jk="; + }; + + meta = with lib; { + homepage = "https://pypi.org/project/bech32/"; + license = with licenses; [ mit ]; + }; +} diff --git a/pkgs/development/python-modules/libagent/default.nix b/pkgs/development/python-modules/libagent/default.nix index 2deb4f18d123..1aa0346795ee 100644 --- a/pkgs/development/python-modules/libagent/default.nix +++ b/pkgs/development/python-modules/libagent/default.nix @@ -1,22 +1,49 @@ -{ lib, fetchFromGitHub, buildPythonPackage, ed25519, ecdsa , semver, mnemonic -, unidecode, mock, pytest , backports-shutil-which, configargparse -, python-daemon, pymsgbox, pynacl }: +{ lib +, fetchFromGitHub +, bech32 +, buildPythonPackage +, cryptography +, ed25519 +, ecdsa +, semver +, mnemonic +, unidecode +, mock +, pytest +, backports-shutil-which +, configargparse +, python-daemon +, pymsgbox +, pynacl +}: # XXX: when changing this package, please test the package onlykey-agent. buildPythonPackage rec { pname = "libagent"; - version = "0.14.4"; + version = "0.14.5"; src = fetchFromGitHub { owner = "romanz"; repo = "trezor-agent"; rev = "v${version}"; - sha256 = "1ksv494xpga27ifrjyn1bkqaya5h769lqb9rx1ng0n4kvmnrqr3l"; + sha256 = "sha256-RISAy0efdatr9u4CWNRGnlffkC8ksw1NyRpJWKwqz+s="; }; - propagatedBuildInputs = [ unidecode backports-shutil-which configargparse - python-daemon pymsgbox ecdsa ed25519 mnemonic semver pynacl ]; + propagatedBuildInputs = [ + unidecode + backports-shutil-which + configargparse + python-daemon + pymsgbox + ecdsa + ed25519 + mnemonic + semver + pynacl + bech32 + cryptography + ]; checkInputs = [ mock pytest ]; diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 7e36f7283157..907026a64109 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -1227,6 +1227,8 @@ in { beautifultable = callPackage ../development/python-modules/beautifultable { }; + bech32 = callPackage ../development/python-modules/bech32 { }; + bedup = callPackage ../development/python-modules/bedup { }; behave = callPackage ../development/python-modules/behave { };