mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 03:17:13 +00:00
55 lines
1.1 KiB
Nix
55 lines
1.1 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, pythonOlder
|
|
, pytestCheckHook
|
|
, matplotlib
|
|
, nibabel
|
|
, numpy
|
|
, scikit-fuzzy
|
|
, scikitimage
|
|
, scikit-learn
|
|
, scipy
|
|
, statsmodels
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "intensity-normalization";
|
|
version = "2.0.1";
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "1c6inlhpxarvkniq8j5j2pgl32dmggn14s8c3c0xx15j7cg90413";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace setup.cfg --replace "pytest-runner" ""
|
|
'';
|
|
|
|
checkInputs = [ pytestCheckHook ];
|
|
pythonImportsCheck = [
|
|
"intensity_normalization"
|
|
"intensity_normalization.normalize"
|
|
"intensity_normalization.plot"
|
|
"intensity_normalization.util"
|
|
];
|
|
propagatedBuildInputs = [
|
|
matplotlib
|
|
nibabel
|
|
numpy
|
|
scikit-fuzzy
|
|
scikitimage
|
|
scikit-learn
|
|
scipy
|
|
statsmodels
|
|
];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/jcreinhold/intensity-normalization";
|
|
description = "MRI intensity normalization tools";
|
|
maintainers = with maintainers; [ bcdarwin ];
|
|
license = licenses.asl20;
|
|
};
|
|
}
|