11 oldest-supported-numpy,
21 buildPythonPackage rec {
26 disabled = pythonOlder "3.7";
28 src = fetchFromGitHub {
31 rev = "refs/tags/v${version}";
32 hash = "sha256-lMPzgmUaoEQB5TzmqEJFiFTuS3AGpyMMjPHlPUKTLvk=";
38 oldest-supported-numpy
41 propagatedBuildInputs = [
50 ] ++ lib.flatten (builtins.attrValues optional-dependencies);
52 # QuTiP tries to access the home directory to create an rc file for us.
53 # We need to go to another directory to run the tests from there.
54 # This is due to the Cython-compiled modules not being in the correct location
57 export HOME=$(mktemp -d);
58 export OMP_NUM_THREADS=$NIX_BUILD_CORES
59 mkdir -p test && cd test
62 # For running tests, see https://qutip.org/docs/latest/installation.html#verifying-the-installation
65 ${python.interpreter} -c "import qutip.testing; qutip.testing.run()"
69 pythonImportsCheck = [ "qutip" ];
71 optional-dependencies = {
72 graphics = [ matplotlib ];
73 ipython = [ ipython ];
81 description = "Open-source software for simulating the dynamics of closed and open quantum systems";
82 homepage = "https://qutip.org/";
83 changelog = "https://github.com/qutip/qutip/releases/tag/v${version}";
84 license = licenses.bsd3;
85 maintainers = with maintainers; [ fabiangd ];