blob: e4072aaf4633c053eba996036fe0bc8b5c5f3baa (
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, flit-core
, aiohttp
, pytz
, requests
, pytestCheckHook
, pytest-asyncio
, responses
}:
buildPythonPackage rec {
pname = "fhir-py";
version = "1.4.2";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "beda-software";
repo = "fhir-py";
rev = "refs/tags/v${version}";
hash = "sha256-kYqoRso1ypN5novRxMMzz1h2NGNybbw5lK4+HErG79I=";
};
preBuild = ''
substituteInPlace pyproject.toml \
--replace "--cov=fhirpy" "" \
--replace "--cov-report=xml" ""
'';
nativeBuildInputs = [
flit-core
];
propagatedBuildInputs = [
aiohttp
pytz
requests
];
nativeCheckInputs = [
pytestCheckHook
pytest-asyncio
responses
];
# sync/async test cases require docker-compose to set up services, so disable:
disabledTestPaths = [ "tests/test_lib_sync.py" ];
disabledTests = [ "TestLibAsyncCase" ];
pythonImportsCheck = [ "fhirpy" ];
meta = with lib; {
description = "Async/sync API for FHIR resources";
homepage = "https://github.com/beda-software/fhir-py";
changelog = "https://github.com/beda-software/fhir-py/blob/${src.rev}/CHANGELOG.md";
license = licenses.mit;
maintainers = with maintainers; [ bcdarwin ];
};
}
|