blob: 9a73fc120b7b5a650dde86f7397f76c9cf9b4198 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
libusb1,
mock,
ndeflib,
pydes,
pyserial,
pytest-tornasync,
pytest-mock,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "nfcpy";
version = "1.0.4";
format = "setuptools";
src = fetchFromGitHub {
owner = "nfcpy";
repo = "nfcpy";
tag = "v${version}";
hash = "sha256-HFWOCiz6ISfxEeC6KPKNKGZoHvFjFGUn7QJWnwvJKYw=";
};
propagatedBuildInputs = [
libusb1
ndeflib
pydes
pyserial
];
nativeCheckInputs = [
pytest-tornasync
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 = {
description = "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 = lib.licenses.eupl11;
maintainers = with lib.maintainers; [ fab ];
};
}
|