blob: bf5f538da33c4a050d96cec795a3ae429f541e17 (
plain) (
blame)
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
59
60
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 ];
};
}
|