summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/python-hl7/default.nix
blob: 4c216001f98b705e8a2397a0672b41323e507d7e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  pytestCheckHook,
  setuptools,
}:

buildPythonPackage rec {
  pname = "hl7";
  version = "0.4.5";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "johnpaulett";
    repo = "python-hl7";
    tag = version;
    hash = "sha256-9uFdyL4+9KSWXflyOMOeUudZTv4NwYPa0ADNTmuVbqo=";
  };

  build-system = [ setuptools ];

  nativeCheckInputs = [ pytestCheckHook ];

  pythonImportsCheck = [ "hl7" ];

  meta = {
    description = "Simple library for parsing messages of Health Level 7 (HL7) version 2.x into Python objects";
    mainProgram = "mllp_send";
    homepage = "https://python-hl7.readthedocs.org";
    changelog = "https://python-hl7.readthedocs.io/en/latest/changelog.html";
    license = lib.licenses.bsd3;
    maintainers = with lib.maintainers; [ bcdarwin ];
  };
}