From f0569c8d96e1e6f1f0cc5dbbbe10a4503731be0c Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 4 May 2023 13:05:08 +0200 Subject: [PATCH] python310Packages.ndeflib: init at 0.3.3 --- .../python-modules/ndeflib/default.nix | 41 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 43 insertions(+) create mode 100644 pkgs/development/python-modules/ndeflib/default.nix 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 { };