1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, pythonOlder
5, pytestCheckHook
6, pytest-lazy-fixture
7, numpy
8, networkx
9, pydicom
10, colorama
11, typeguard
12, versioneer
13}:
14
15buildPythonPackage rec {
16 pname = "monai";
17 version = "0.5.0";
18 format = "pyproject";
19
20 disabled = pythonOlder "3.7";
21
22 src = fetchFromGitHub {
23 owner = "Project-MONAI";
24 repo = "monai-deploy-app-sdk";
25 rev = "refs/tags/${version}";
26 hash = "sha256-oaNZ0US0YR/PSwAZ5GfRpAW+HRYVhdCZI83fC00rgok=";
27 };
28
29 nativeBuildInputs = [ versioneer ];
30
31 propagatedBuildInputs = [
32 numpy
33 networkx
34 colorama
35 typeguard
36 ];
37
38 nativeCheckInputs = [ pytestCheckHook pytest-lazy-fixture ];
39 disabledTests = [
40 # requires Docker daemon:
41 "test_packager"
42 ];
43 pythonImportsCheck = [
44 "monai.deploy"
45 "monai.deploy.core"
46 # "monai.deploy.operators" should be imported as well but
47 # requires some "optional" dependencies
48 # like highdicom (which is not packaged yet) and pydicom
49 ];
50
51 meta = with lib; {
52 description = "Framework and tools to design, develop and verify AI applications in healthcare imaging";
53 homepage = "https://monai.io/deploy.html";
54 license = licenses.asl20;
55 maintainers = [ maintainers.bcdarwin ];
56 };
57}