Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

qutip: 4.7.5 -> 5.0.2 #316020

Merged
merged 1 commit into from
May 31, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 10 additions & 8 deletions pkgs/development/python-modules/qutip/default.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
lib,
stdenv,
buildPythonPackage,
cvxopt,
cvxpy,
Expand All @@ -9,29 +8,35 @@
ipython,
matplotlib,
numpy,
oldest-supported-numpy,
packaging,
pytest-rerunfailures,
pytestCheckHook,
python,
pythonOlder,
scipy,
setuptools,
}:

buildPythonPackage rec {
pname = "qutip";
version = "4.7.5";
format = "setuptools";
version = "5.0.2";
pyproject = true;

disabled = pythonOlder "3.7";

src = fetchFromGitHub {
owner = pname;
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-4nXZPZFu9L+Okha3qvPil1KvLGO1EbrzotQjqQ8r9l8=";
hash = "sha256-lMPzgmUaoEQB5TzmqEJFiFTuS3AGpyMMjPHlPUKTLvk=";
};

nativeBuildInputs = [ cython_0 ];
nativeBuildInputs = [
cython_0
setuptools
oldest-supported-numpy
];

propagatedBuildInputs = [
numpy
Expand All @@ -44,9 +49,6 @@ buildPythonPackage rec {
pytest-rerunfailures
] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies);

# Disabling OpenMP support on Darwin.
setupPyGlobalFlags = lib.optionals (!stdenv.isDarwin) [ "--with-openmp" ];

# QuTiP tries to access the home directory to create an rc file for us.
# We need to go to another directory to run the tests from there.
# This is due to the Cython-compiled modules not being in the correct location
Expand Down