17 buildPythonPackage rec {
20 format = "setuptools";
22 src = fetchFromGitHub {
25 rev = "refs/tags/v${version}";
26 hash = "sha256-lXOREy0BABcjpAkxIMy245SAX8HfJKj/QSHGob14GgI=";
29 # setup.py calls Cmake and passes the arguments in CMAKE_CONFIGURE_ARGS to cmake.
30 build-system = [ cmake ];
31 dontUseCmakeConfigure = true;
33 export CMAKE_CONFIGURE_ARGS="-DBUILD_LIBCINT=0 -DBUILD_LIBXC=0 -DBUILD_XCFUN=0"
34 PYSCF_INC_DIR="${libcint}:${libxc}:${xcfun}";
51 nativeCheckInputs = [ pytestCheckHook ];
52 pythonImportsCheck = [ "pyscf" ];
54 # Set config used by tests to ensure reproducibility
55 echo 'pbc_tools_pbc_fft_engine = "NUMPY"' > pyscf/pyscf_config.py
56 export OMP_NUM_THREADS=1
58 export PYSCF_CONFIG_FILE=$(pwd)/pyscf/pyscf_config.py
61 # Numerically slightly off tests
78 "test_finite_diff_rks_eph"
79 "test_finite_diff_uks_eph"
80 "test_finite_diff_roks_grad"
81 "test_finite_diff_df_roks_grad"
83 "test_nosymm_sa4_newton"
87 "test_collinear_kgks_gga"
88 "test_libxc_gga_deriv4"
93 "--ignore=pyscf/pbc/tdscf"
94 "--ignore=pyscf/pbc/gw"
95 "--ignore-glob=*_slow.*py"
96 "--ignore-glob=*_kproxy_.*py"
97 "--ignore-glob=test_proxy.py"
98 "--ignore-glob=pyscf/nac/test/test_sacasscf.py"
99 "--ignore-glob=pyscf/grad/test/test_casscf.py"
103 description = "Python-based simulations of chemistry framework";
104 homepage = "https://github.com/pyscf/pyscf";
105 license = licenses.asl20;
110 maintainers = [ maintainers.sheepforce ];