Commit f0569c8d authored by Fabian Affolter's avatar Fabian Affolter
Browse files

python310Packages.ndeflib: init at 0.3.3

parent 2992b289
Loading
Loading
Loading
Loading
+41 −0
Original line number Diff line number Diff line
{ 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 ];
  };
}
+2 −0
Original line number Diff line number Diff line
@@ -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 { };