Merge pull request #200005 from prusnak/python-trezor

python3Packages.trezor: 0.13.3 -> 0.13.4
This commit is contained in:
Pavol Rusnak 2022-11-07 15:45:17 +01:00 committed by GitHub
commit b3b7706cab
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 48 additions and 2 deletions

View file

@ -0,0 +1,41 @@
{ lib
, stdenv
, buildPythonPackage
, fetchFromGitHub
, poetry-core
, construct
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "construct-classes";
version = "0.1.2";
format = "pyproject";
# no tests in PyPI tarball
src = fetchFromGitHub {
owner = "matejcik";
repo = "construct-classes";
rev = "v${version}";
sha256 = "sha256-l4sVacKTuQbhXCw2lVHCl1OzpCiKmEAm9nSQ8pxFuTo=";
};
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
construct
];
checkInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "construct_classes" ];
meta = with lib; {
description = "Parse your binary data into dataclasses.";
homepage = "https://github.com/matejcik/construct-classes";
license = licenses.mit;
maintainers = with maintainers; [ prusnak ];
};
}

View file

@ -7,6 +7,7 @@
, attrs
, click
, construct
, construct-classes
, ecdsa
, hidapi
, libusb1
@ -24,13 +25,13 @@
buildPythonPackage rec {
pname = "trezor";
version = "0.13.3";
version = "0.13.4";
disabled = !isPy3k;
src = fetchPypi {
inherit pname version;
sha256 = "055d32174d4ecf2353f7622ee44b8e82e3bef78fe40ce5cdbeafc785b422a049";
sha256 = "04a77b44005971819386bbd55242a1004b1f88fbbdb829deb039a1e0028a4af1";
};
nativeBuildInputs = [ installShellFiles ];
@ -39,6 +40,7 @@ buildPythonPackage rec {
attrs
click
construct
construct-classes
ecdsa
hidapi
libusb1
@ -58,6 +60,7 @@ buildPythonPackage rec {
disabledTestPaths = [
"tests/test_stellar.py" # requires stellar-sdk
"tests/test_firmware.py" # requires network downloads
];
pythonImportsCheck = [ "trezorlib" ];

View file

@ -1928,6 +1928,8 @@ self: super: with self; {
construct = callPackage ../development/python-modules/construct { };
construct-classes = callPackage ../development/python-modules/construct-classes { };
consul = callPackage ../development/python-modules/consul { };
container-inspector = callPackage ../development/python-modules/container-inspector { };