88abffb7d2
GitOrigin-RevId: bc9b956714ed6eac5f8888322aac5bc41389defa
45 lines
995 B
Nix
45 lines
995 B
Nix
{ buildPythonPackage, lib, fetchFromGitHub, libcint, libxc, xcfun, blas
|
|
, numpy, scipy, h5py
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pyscf";
|
|
version = "1.7.6.post1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "pyscf";
|
|
repo = pname;
|
|
rev = "f6c9c6654dd9609c5e467a1edd5c2c076f793acc";
|
|
sha256 = "0xbwkjxxysfpqz72qn6n4a0zr2h6sprbcal8j7kzymh7swjy117w";
|
|
};
|
|
|
|
# Backport from the 2.0.0 alpha releases of PySCF.
|
|
# H5Py > 3.3 deprecates the file modes, that PySCF sets.
|
|
patches = [ ./h5py.patch ];
|
|
|
|
buildInputs = [
|
|
libcint
|
|
libxc
|
|
xcfun
|
|
blas
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
numpy
|
|
scipy
|
|
h5py
|
|
];
|
|
|
|
PYSCF_INC_DIR="${libcint}:${libxc}:${xcfun}";
|
|
|
|
doCheck = false;
|
|
pythonImportsCheck = [ "pyscf" ];
|
|
|
|
meta = with lib; {
|
|
description = "Python-based simulations of chemistry framework";
|
|
homepage = "https://github.com/pyscf/pyscf";
|
|
license = licenses.asl20;
|
|
platforms = platforms.linux;
|
|
maintainers = [ maintainers.sheepforce ];
|
|
};
|
|
}
|