2021-12-06 16:07:01 +00:00
|
|
|
{ buildPythonPackage
|
|
|
|
, lib
|
|
|
|
, fetchFromGitLab
|
|
|
|
, python
|
|
|
|
, numpy
|
|
|
|
, scipy
|
|
|
|
, periodictable
|
|
|
|
, fields
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "polarizationsolver";
|
|
|
|
version = "unstable-2021-11-02";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2021-12-06 16:07:01 +00:00
|
|
|
|
|
|
|
src = fetchFromGitLab {
|
|
|
|
owner = "reinholdt";
|
|
|
|
repo = pname;
|
|
|
|
rev = "00424ac4d1862257a55e4b16543f63ace3fe8c22";
|
2023-03-15 16:39:30 +00:00
|
|
|
hash = "sha256-LACf8Xw+o/uJ3+PD/DE/o7nwKY7fv3NyYbpjCrTTnBU=";
|
2021-12-06 16:07:01 +00:00
|
|
|
};
|
|
|
|
|
2023-03-24 00:07:29 +00:00
|
|
|
# setup.py states version="dev", which is not a valid version string for setuptools
|
|
|
|
# There has never been a formal stable release, so let's say 0.0 here.
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace ./setup.py --replace 'version="dev",' 'version="0.0",'
|
|
|
|
'';
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
numpy
|
|
|
|
periodictable
|
|
|
|
scipy
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [ fields ];
|
2021-12-06 16:07:01 +00:00
|
|
|
|
|
|
|
pythonImportsCheck = [ "polarizationsolver" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Multipole moment solver for quantum chemistry and polarisable embedding";
|
|
|
|
homepage = "https://gitlab.com/reinholdt/polarizationsolver";
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = [ maintainers.sheepforce ];
|
|
|
|
};
|
|
|
|
}
|