1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pythonOlder, 6 pytestCheckHook, 7 setuptools, 8}: 9 10buildPythonPackage rec { 11 pname = "hl7"; 12 version = "0.4.5"; 13 pyproject = true; 14 15 disabled = pythonOlder "3.7"; 16 17 src = fetchFromGitHub { 18 owner = "johnpaulett"; 19 repo = "python-hl7"; 20 tag = version; 21 hash = "sha256-9uFdyL4+9KSWXflyOMOeUudZTv4NwYPa0ADNTmuVbqo="; 22 }; 23 24 build-system = [ setuptools ]; 25 26 nativeCheckInputs = [ pytestCheckHook ]; 27 28 pythonImportsCheck = [ "hl7" ]; 29 30 meta = with lib; { 31 description = "Simple library for parsing messages of Health Level 7 (HL7) version 2.x into Python objects"; 32 mainProgram = "mllp_send"; 33 homepage = "https://python-hl7.readthedocs.org"; 34 changelog = "https://python-hl7.readthedocs.io/en/latest/changelog.html"; 35 license = licenses.bsd3; 36 maintainers = with maintainers; [ bcdarwin ]; 37 }; 38}