nixpkgs/pkgs/development/python-modules/polarizationsolver/default.nix
adisbladis 02dab4ab5c python3.pkgs.*: Explicitly pass buildPythonPackage format parameter
Long term we should move everything over to `pyproject = true`, but in
the mean time we can work towards deprecating the implicit `format` paremeter.

cc https://github.com/NixOS/nixpkgs/issues/253154
cc @mweinelt @figsoda
2023-12-07 17:46:49 +01:00

46 lines
1.1 KiB
Nix

{ buildPythonPackage
, lib
, fetchFromGitLab
, python
, numpy
, scipy
, periodictable
, fields
}:
buildPythonPackage rec {
pname = "polarizationsolver";
version = "unstable-2021-11-02";
format = "setuptools";
src = fetchFromGitLab {
owner = "reinholdt";
repo = pname;
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 = with lib; {
description = "Multipole moment solver for quantum chemistry and polarisable embedding";
homepage = "https://gitlab.com/reinholdt/polarizationsolver";
license = licenses.gpl3Plus;
maintainers = [ maintainers.sheepforce ];
};
}