1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, pytestCheckHook
5, pythonOlder
6}:
7
8buildPythonPackage rec {
9 pname = "ndeflib";
10 version = "0.3.3";
11 format = "setuptools";
12
13 disabled = pythonOlder "3.7";
14
15 src = fetchFromGitHub {
16 owner = "nfcpy";
17 repo = "ndeflib";
18 rev = "refs/tags/v${version}";
19 hash = "sha256-cpfztE+/AW7P0J7QeTDfVGYc2gEkr7gzA352hC9bdTM=";
20 };
21
22 nativeCheckInputs = [
23 pytestCheckHook
24 ];
25
26 pythonImportsCheck = [
27 "ndef"
28 ];
29
30 disabledTests = [
31 # AssertionError caused due to wrong size
32 "test_decode_error"
33 ];
34
35 meta = with lib; {
36 description = "Python package for parsing and generating NFC Data Exchange Format messages";
37 homepage = "https://github.com/nfcpy/ndeflib";
38 license = licenses.isc;
39 maintainers = with maintainers; [ fab ];
40 };
41}