tangled
alpha
login
or
join now
tjh.dev
/
nixpkgs
0
fork
atom
nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
0
fork
atom
overview
issues
pulls
pipelines
python310Packages.nfcpy: init at 1.0.4
Fabian Affolter
3 years ago
540c7b84
1d3ffa6f
+69
-2
3 changed files
expand all
collapse all
unified
split
pkgs
development
python-modules
ledgerblue
default.nix
nfcpy
default.nix
top-level
python-packages.nix
+6
-2
pkgs/development/python-modules/ledgerblue/default.nix
reviewed
···
1
1
{ lib
2
2
+
, bleak
2
3
, buildPythonPackage
3
4
, ecpy
4
5
, fetchPypi
5
6
, future
6
7
, hidapi
8
8
+
, nfcpy
7
9
, pillow
8
10
, protobuf
9
11
, pycrypto
···
18
16
19
17
buildPythonPackage rec {
20
18
pname = "ledgerblue";
21
21
-
version = "0.1.44";
19
19
+
version = "0.1.47";
22
20
format = "setuptools";
23
21
24
22
disabled = pythonOlder "3.7";
25
23
26
24
src = fetchPypi {
27
25
inherit pname version;
28
28
-
hash = "sha256-pOLpeej10G7Br8juTuQOSuCbhMjAP4aY0/JwnmJRblk=";
26
26
+
hash = "sha256-xe8ude2JzrdmJqwzqLlxRO697IjcGuQgGG6c3nQ/drg=";
29
27
};
30
28
31
29
propagatedBuildInputs = [
30
30
+
bleak
32
31
ecpy
33
32
future
34
33
hidapi
34
34
+
nfcpy
35
35
pillow
36
36
protobuf
37
37
pycrypto
+61
pkgs/development/python-modules/nfcpy/default.nix
reviewed
···
1
1
+
{ lib
2
2
+
, buildPythonPackage
3
3
+
, fetchFromGitHub
4
4
+
, libusb1
5
5
+
, mock
6
6
+
, ndeflib
7
7
+
, pydes
8
8
+
, pyserial
9
9
+
, pytest-mock
10
10
+
, pytestCheckHook
11
11
+
, pythonOlder
12
12
+
}:
13
13
+
14
14
+
buildPythonPackage rec {
15
15
+
pname = "nfcpy";
16
16
+
version = "1.0.4";
17
17
+
format = "setuptools";
18
18
+
19
19
+
disabled = pythonOlder "3.7";
20
20
+
21
21
+
src = fetchFromGitHub {
22
22
+
owner = "nfcpy";
23
23
+
repo = "nfcpy";
24
24
+
rev = "refs/tags/v${version}";
25
25
+
hash = "sha256-HFWOCiz6ISfxEeC6KPKNKGZoHvFjFGUn7QJWnwvJKYw=";
26
26
+
};
27
27
+
28
28
+
propagatedBuildInputs = [
29
29
+
libusb1
30
30
+
ndeflib
31
31
+
pydes
32
32
+
pyserial
33
33
+
];
34
34
+
35
35
+
nativeCheckInputs = [
36
36
+
mock
37
37
+
pytest-mock
38
38
+
pytestCheckHook
39
39
+
];
40
40
+
41
41
+
pythonImportsCheck = [
42
42
+
"nfc"
43
43
+
];
44
44
+
45
45
+
disabledTestPaths = [
46
46
+
# AttributeError: 'NoneType' object has no attribute 'EC_KEY'
47
47
+
"tests/test_llcp_llc.py"
48
48
+
"tests/test_llcp_sec.py"
49
49
+
# Doesn't work on Hydra
50
50
+
"tests/test_clf_udp.py"
51
51
+
];
52
52
+
53
53
+
meta = with lib; {
54
54
+
description = "A Python module to read/write NFC tags or communicate with another NFC device";
55
55
+
homepage = "https://github.com/nfcpy/nfcpy";
56
56
+
changelog = "https://github.com/nfcpy/nfcpy/blob/v${version}/HISTORY.rst";
57
57
+
license = licenses.eupl11;
58
58
+
maintainers = with maintainers; [ fab ];
59
59
+
};
60
60
+
}
61
61
+
+2
pkgs/top-level/python-packages.nix
reviewed
···
6566
6566
6567
6567
nextdns = callPackage ../development/python-modules/nextdns { };
6568
6568
6569
6569
+
nfcpy = callPackage ../development/python-modules/nfcpy { };
6570
6570
+
6569
6571
nftables = toPythonModule (pkgs.nftables.override {
6570
6572
python3 = python;
6571
6573
withPython = true;