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 ccdf1ba1b857..d2cb3b326d1d 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -1235,6 +1235,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 { };