nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 numpy,
7 simpleitk,
8}:
9
10buildPythonPackage rec {
11 pname = "medvol";
12 version = "0.0.18";
13 pyproject = true;
14
15 src = fetchFromGitHub {
16 owner = "MIC-DKFZ";
17 repo = "medvol";
18 tag = "v${version}";
19 hash = "sha256-PUZZRF5KzfvwI335H1tnUtGa2+zdnL6J5NArqQWL7tM=";
20 };
21
22 build-system = [ setuptools ];
23
24 dependencies = [
25 numpy
26 simpleitk
27 ];
28
29 doCheck = false; # no tests
30
31 pythonImportsCheck = [ "medvol" ];
32
33 meta = {
34 description = "Wrapper for loading medical 3D image volumes such as NIFTI or NRRD images";
35 homepage = "https://github.com/MIC-DKFZ/medvol";
36 changelog = "https://github.com/MIC-DKFZ/MedVol/releases/tag/${src.tag}";
37 license = lib.licenses.asl20;
38 maintainers = with lib.maintainers; [ bcdarwin ];
39 };
40}