nixpkgs/pkgs/development/python-modules/polarizationsolver/default.nix
Ihar Hrachyshka 567e8dfd8e
treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

45 lines
1.1 KiB
Nix

{
buildPythonPackage,
lib,
fetchFromGitLab,
numpy,
scipy,
periodictable,
fields,
}:
buildPythonPackage {
pname = "polarizationsolver";
version = "unstable-2021-11-02";
format = "setuptools";
src = fetchFromGitLab {
owner = "reinholdt";
repo = "polarizationsolver";
rev = "00424ac4d1862257a55e4b16543f63ace3fe8c22";
hash = "sha256-LACf8Xw+o/uJ3+PD/DE/o7nwKY7fv3NyYbpjCrTTnBU=";
};
# 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",'
'';
propagatedBuildInputs = [
numpy
periodictable
scipy
];
nativeCheckInputs = [ fields ];
pythonImportsCheck = [ "polarizationsolver" ];
meta = {
description = "Multipole moment solver for quantum chemistry and polarisable embedding";
homepage = "https://gitlab.com/reinholdt/polarizationsolver";
license = lib.licenses.gpl3Plus;
maintainers = [ lib.maintainers.sheepforce ];
};
}