Merge pull request #229882 from fabaff/ledgerblue-fix

python310Packages.ledgerblue: 0.1.41 -> 0.1.47
This commit is contained in:
Fabian Affolter 2023-05-04 15:08:26 +02:00 committed by GitHub
commit e44cce2570
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 115 additions and 3 deletions

View File

@ -1,38 +1,44 @@
{ lib
, bleak
, buildPythonPackage
, ecpy
, fetchPypi
, future
, hidapi
, nfcpy
, pillow
, protobuf
, pycrypto
, pycryptodomex
, pythonOlder
, pyelftools
, python-u2flib-host
, pythonOlder
, websocket-client
}:
buildPythonPackage rec {
pname = "ledgerblue";
version = "0.1.44";
version = "0.1.47";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-pOLpeej10G7Br8juTuQOSuCbhMjAP4aY0/JwnmJRblk=";
hash = "sha256-xe8ude2JzrdmJqwzqLlxRO697IjcGuQgGG6c3nQ/drg=";
};
propagatedBuildInputs = [
bleak
ecpy
future
hidapi
nfcpy
pillow
protobuf
pycrypto
pycryptodomex
pyelftools
python-u2flib-host
websocket-client
];

View File

@ -0,0 +1,41 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "ndeflib";
version = "0.3.3";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "nfcpy";
repo = "ndeflib";
rev = "refs/tags/v${version}";
hash = "sha256-cpfztE+/AW7P0J7QeTDfVGYc2gEkr7gzA352hC9bdTM=";
};
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"ndef"
];
disabledTests = [
# AssertionError caused due to wrong size
"test_decode_error"
];
meta = with lib; {
description = "Python package for parsing and generating NFC Data Exchange Format messages";
homepage = "https://github.com/nfcpy/ndeflib";
license = licenses.isc;
maintainers = with maintainers; [ fab ];
};
}

View File

@ -0,0 +1,61 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, libusb1
, mock
, ndeflib
, pydes
, pyserial
, pytest-mock
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "nfcpy";
version = "1.0.4";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "nfcpy";
repo = "nfcpy";
rev = "refs/tags/v${version}";
hash = "sha256-HFWOCiz6ISfxEeC6KPKNKGZoHvFjFGUn7QJWnwvJKYw=";
};
propagatedBuildInputs = [
libusb1
ndeflib
pydes
pyserial
];
nativeCheckInputs = [
mock
pytest-mock
pytestCheckHook
];
pythonImportsCheck = [
"nfc"
];
disabledTestPaths = [
# AttributeError: 'NoneType' object has no attribute 'EC_KEY'
"tests/test_llcp_llc.py"
"tests/test_llcp_sec.py"
# Doesn't work on Hydra
"tests/test_clf_udp.py"
];
meta = with lib; {
description = "A Python module to read/write NFC tags or communicate with another NFC device";
homepage = "https://github.com/nfcpy/nfcpy";
changelog = "https://github.com/nfcpy/nfcpy/blob/v${version}/HISTORY.rst";
license = licenses.eupl11;
maintainers = with maintainers; [ fab ];
};
}

View File

@ -6516,6 +6516,8 @@ self: super: with self; {
nclib = callPackage ../development/python-modules/nclib { };
ndeflib = callPackage ../development/python-modules/ndeflib { };
ndg-httpsclient = callPackage ../development/python-modules/ndg-httpsclient { };
ndindex = callPackage ../development/python-modules/ndindex { };
@ -6580,6 +6582,8 @@ self: super: with self; {
nextdns = callPackage ../development/python-modules/nextdns { };
nfcpy = callPackage ../development/python-modules/nfcpy { };
nftables = toPythonModule (pkgs.nftables.override {
python3 = python;
withPython = true;