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