blob: a75308a4d6600d0dfcb30fbd9e13627ea08c7d01 (
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
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
pythonAtLeast,
setuptools,
}:
buildPythonPackage rec {
pname = "ndeflib";
version = "0.3.3";
pyproject = true;
src = fetchFromGitHub {
owner = "nfcpy";
repo = "ndeflib";
tag = "v${version}";
hash = "sha256-cpfztE+/AW7P0J7QeTDfVGYc2gEkr7gzA352hC9bdTM=";
};
nativeBuildInputs = [ setuptools ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "ndef" ];
disabledTests = [
# AssertionError caused due to wrong size
"test_decode_error"
]
++ lib.optionals (pythonAtLeast "3.12") [ "test_encode_error" ];
meta = {
description = "Python package for parsing and generating NFC Data Exchange Format messages";
homepage = "https://github.com/nfcpy/ndeflib";
changelog = "https://github.com/nfcpy/ndeflib/releases/tag/v${version}";
license = lib.licenses.isc;
maintainers = with lib.maintainers; [ fab ];
};
}
|