···34343535buildPythonPackage rec {
3636 pname = "qiskit-aqua";
3737- version = "0.8.2";
3737+ version = "0.9.0";
38383939 disabled = pythonOlder "3.6";
4040···4343 owner = "Qiskit";
4444 repo = "qiskit-aqua";
4545 rev = version;
4646- sha256 = "sha256-ybf8bXqsVk6quYi0vrfo/Mplk7Nr7tQS7cevXxI9khw=";
4646+ hash = "sha256-knue9uJih72UQHsvfXZ9AA94mol4ERa9Lo/GMcp+2hA=";
4747 };
48484949 # Optional packages: pyscf (see below NOTE) & pytorch. Can install via pip/nix if needed.
···7474 # We disable appropriate tests below to allow building without pyscf installed
75757676 postPatch = ''
7777- substituteInPlace setup.py --replace "docplex==2.15.194" "docplex"
7777+ # Because this is a legacy/final release, the maintainers restricted the maximum
7878+ # versions of all dependencies to the latest current version. That will not
7979+ # work with nixpkgs' rolling release/update system.
8080+ # Unlock all versions for compatibility
8181+ substituteInPlace setup.py --replace "<=" ">="
8282+ sed -i 's/\(\w\+-*\w*\).*/\1/' requirements.txt
8383+ substituteInPlace requirements.txt --replace "dataclasses" ""
78847985 # Add ImportWarning when running qiskit.chemistry (pyscf is a chemistry package) that pyscf is not included
8086 echo -e "\nimport warnings\ntry: import pyscf;\nexcept ImportError:\n " \