python310Packages.nfcpy: init at 1.0.4

This commit is contained in:
Fabian Affolter
2023-05-04 13:38:54 +02:00
parent 1d3ffa6fbc
commit 540c7b84b6
3 changed files with 69 additions and 2 deletions
@@ -1,9 +1,11 @@
{ lib
, bleak
, buildPythonPackage
, ecpy
, fetchPypi
, future
, hidapi
, nfcpy
, pillow
, protobuf
, pycrypto
@@ -16,20 +18,22 @@
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
@@ -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 ];
};
}
+2
View File
@@ -6566,6 +6566,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;