diff --git a/pkgs/development/python-modules/ndeflib/default.nix b/pkgs/development/python-modules/ndeflib/default.nix new file mode 100644 index 000000000000..3699955627ec --- /dev/null +++ b/pkgs/development/python-modules/ndeflib/default.nix @@ -0,0 +1,41 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, pytestCheckHook +, pythonOlder +}: + +buildPythonPackage rec { + pname = "ndeflib"; + version = "0.3.3"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; + + src = fetchFromGitHub { + owner = "nfcpy"; + repo = "ndeflib"; + rev = "refs/tags/v${version}"; + hash = "sha256-cpfztE+/AW7P0J7QeTDfVGYc2gEkr7gzA352hC9bdTM="; + }; + + nativeCheckInputs = [ + pytestCheckHook + ]; + + pythonImportsCheck = [ + "ndef" + ]; + + disabledTests = [ + # AssertionError caused due to wrong size + "test_decode_error" + ]; + + meta = with lib; { + description = "Python package for parsing and generating NFC Data Exchange Format messages"; + homepage = "https://github.com/nfcpy/ndeflib"; + license = licenses.isc; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index bc2bb0ced484..7e18d1cd6032 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -6500,6 +6500,8 @@ self: super: with self; { nclib = callPackage ../development/python-modules/nclib { }; + ndeflib = callPackage ../development/python-modules/ndeflib { }; + ndg-httpsclient = callPackage ../development/python-modules/ndg-httpsclient { }; ndindex = callPackage ../development/python-modules/ndindex { };