python3Packages.sasmodels: add pythonImportsCheck
This commit is contained in:
parent
7ec5abb10d
commit
e062659996
|
@ -8,33 +8,53 @@
|
||||||
, docutils
|
, docutils
|
||||||
, pyopencl
|
, pyopencl
|
||||||
, opencl-headers
|
, opencl-headers
|
||||||
|
, pythonOlder
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "sasmodels";
|
pname = "sasmodels";
|
||||||
version = "1.0.6";
|
version = "1.0.6";
|
||||||
|
format = "setuptools";
|
||||||
|
|
||||||
|
disabled = pythonOlder "3.7";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "SasView";
|
owner = "SasView";
|
||||||
repo = "sasmodels";
|
repo = "sasmodels";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "sha256-RVEPu07gp1ScciJQmjizyELcOD2WSjIlxunj5LnmXdw=";
|
hash = "sha256-RVEPu07gp1ScciJQmjizyELcOD2WSjIlxunj5LnmXdw=";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ opencl-headers ];
|
buildInputs = [
|
||||||
|
opencl-headers
|
||||||
|
];
|
||||||
|
|
||||||
|
propagatedBuildInputs = [
|
||||||
|
docutils
|
||||||
|
matplotlib
|
||||||
|
numpy
|
||||||
|
scipy
|
||||||
|
pyopencl
|
||||||
|
];
|
||||||
|
|
||||||
# Note: the 1.0.5 release should be compatible with pytest6, so this can
|
# Note: the 1.0.5 release should be compatible with pytest6, so this can
|
||||||
# be set back to 'pytest' at that point
|
# be set back to 'pytest' at that point
|
||||||
checkInputs = [ pytest ];
|
checkInputs = [
|
||||||
propagatedBuildInputs = [ docutils matplotlib numpy scipy pyopencl ];
|
pytest
|
||||||
|
];
|
||||||
|
|
||||||
checkPhase = ''
|
checkPhase = ''
|
||||||
HOME=$(mktemp -d) py.test -c ./pytest.ini
|
HOME=$(mktemp -d) py.test -c ./pytest.ini
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = {
|
pythonImportsCheck = [
|
||||||
|
"sasmodels"
|
||||||
|
];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
description = "Library of small angle scattering models";
|
description = "Library of small angle scattering models";
|
||||||
homepage = "http://sasview.org";
|
homepage = "https://github.com/SasView/sasmodels";
|
||||||
license = lib.licenses.bsd3;
|
license = licenses.bsd3;
|
||||||
maintainers = with lib.maintainers; [ rprospero ];
|
maintainers = with maintainers; [ rprospero ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue