about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/python-hl7/default.nix
blob: 98a73c8252ba60f3a5ff796b926f543ff861652c (plain) (blame)
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
36
{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, pytestCheckHook
, setuptools
}:

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

  disabled = pythonOlder "3.7";

  src = fetchFromGitHub {
    owner = "johnpaulett";
    repo = "python-hl7";
    rev = "refs/tags/${version}";
    hash = "sha256-9uFdyL4+9KSWXflyOMOeUudZTv4NwYPa0ADNTmuVbqo=";
  };

  nativeBuildInputs = [ setuptools ];

  nativeCheckInputs = [ pytestCheckHook ];

  pythonImportsCheck = [ "hl7" ];

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