Merge pull request #112625 from fabaff/bump-pyfakefs

authored by

Sandro and committed by
GitHub
bbfa0740 4465f42c

+62 -114
+2 -2
pkgs/development/python-modules/docplex/default.nix
··· 9 9 10 10 buildPythonPackage rec { 11 11 pname = "docplex"; 12 - version = "2.19.202"; 12 + version = "2.20.204"; 13 13 14 14 # No source available from official repo 15 15 src = fetchPypi { 16 16 inherit pname version; 17 - sha256 = "2b606dc645f99feae67dfc528620dddc773ecef5d59bcaeae68bba601f25162b"; 17 + sha256 = "sha256-JNjD9UtLHsMGwTuXydZ+L5+pPQ2eobkr26Yt9pgs1qA="; 18 18 }; 19 19 20 20 propagatedBuildInputs = [
+8 -10
pkgs/development/python-modules/intelhex/default.nix
··· 1 1 { lib 2 2 , buildPythonPackage 3 3 , fetchPypi 4 - , fetchpatch 4 + , pytestCheckHook 5 5 }: 6 6 7 7 buildPythonPackage rec { 8 8 pname = "intelhex"; 9 - version = "2.2.1"; 9 + version = "2.3.0"; 10 10 11 11 src = fetchPypi { 12 12 inherit pname version; 13 - sha256 = "0ckqjbxd8gwcg98gfzpn4vq1qxzfvq3rdbrr1hikj1nmw08qb780"; 13 + sha256 = "sha256-iStzYacZ9JRSN9qMz3VOlRPbMvViiFJ4WuoQjc0lAJM="; 14 14 }; 15 15 16 - patches = [ 17 - # patch the tests to check for the correct version string (2.2.1) 18 - (fetchpatch { 19 - url = "https://patch-diff.githubusercontent.com/raw/bialix/intelhex/pull/26.patch"; 20 - sha256 = "1f3f2cyf9ipb9zdifmjs8rqhg028dhy91vabxxn3l7br657s8r2l"; 21 - }) 22 - ]; 16 + checkInputs = [ pytestCheckHook ]; 17 + 18 + pytestFlagsArray = [ "intelhex/test.py" ]; 19 + 20 + pythonImportsCheck = [ "intelhex" ]; 23 21 24 22 meta = { 25 23 homepage = "https://github.com/bialix/intelhex";
+16 -14
pkgs/development/python-modules/pyfakefs/default.nix
··· 1 - { lib, stdenv, buildPythonPackage, fetchPypi, pythonOlder, python, pytest, glibcLocales }: 1 + { lib 2 + , stdenv 3 + , buildPythonPackage 4 + , fetchPypi 5 + , pytestCheckHook 6 + , pythonOlder 7 + }: 2 8 3 9 buildPythonPackage rec { 4 - version = "4.3.2"; 10 + version = "4.3.3"; 5 11 pname = "pyfakefs"; 6 12 disabled = pythonOlder "3.5"; 7 13 8 14 src = fetchPypi { 9 15 inherit pname version; 10 - sha256 = "dfeed4715e2056e3e56b9c5f51a679ce2934897eef926f3d14e5364e43f19070"; 16 + sha256 = "sha256-/7KrJkoLg69Uii2wxQl5jiCDYd85YBuomK5lzs+1nLs="; 11 17 }; 12 18 13 19 postPatch = '' ··· 25 31 --replace "test_rename_dir_to_existing_dir" "notest_rename_dir_to_existing_dir" 26 32 ''); 27 33 28 - checkInputs = [ pytest glibcLocales ]; 29 - 30 - checkPhase = '' 31 - export LC_ALL=en_US.UTF-8 32 - ${python.interpreter} -m pyfakefs.tests.all_tests 33 - ${python.interpreter} -m pyfakefs.tests.all_tests_without_extra_packages 34 - ${python.interpreter} -m pytest pyfakefs/pytest_tests/pytest_plugin_test.py 35 - ''; 34 + checkInputs = [ pytestCheckHook ]; 35 + # https://github.com/jmcgeheeiv/pyfakefs/issues/581 (OSError: [Errno 9] Bad file descriptor) 36 + disabledTests = [ "test_open_existing_pipe" ]; 37 + pythonImportsCheck = [ "pyfakefs" ]; 36 38 37 39 meta = with lib; { 38 40 description = "Fake file system that mocks the Python file system modules"; 39 - license = licenses.asl20; 40 - homepage = "http://pyfakefs.org/"; 41 - changelog = "https://github.com/jmcgeheeiv/pyfakefs/blob/master/CHANGES.md"; 41 + homepage = "http://pyfakefs.org/"; 42 + changelog = "https://github.com/jmcgeheeiv/pyfakefs/blob/master/CHANGES.md"; 43 + license = licenses.asl20; 42 44 maintainers = with maintainers; [ gebner ]; 43 45 }; 44 46 }
+10 -6
pkgs/development/python-modules/qiskit-aer/default.nix
··· 6 6 , blas 7 7 , catch2 8 8 , cmake 9 + , conan 9 10 , cython 10 11 , fmt 11 12 , muparserx ··· 27 28 28 29 buildPythonPackage rec { 29 30 pname = "qiskit-aer"; 30 - version = "0.7.1"; 31 + version = "0.7.4"; 31 32 32 33 disabled = pythonOlder "3.6"; 33 34 ··· 35 36 owner = "Qiskit"; 36 37 repo = "qiskit-aer"; 37 38 rev = version; 38 - sha256 = "07l0wavdknx0y4vy0hwgw24365sg4nb6ygl3lpa098np85qgyn4y"; 39 + sha256 = "sha256-o6c1ZcGFZ3pwinzMTif1nqF29Wq0Nog1++ZoJGuiKxo="; 39 40 }; 40 41 41 42 nativeBuildInputs = [ ··· 60 61 pybind11 61 62 ]; 62 63 63 - patches = [ 64 - # TODO: remove in favor of qiskit-aer PR #877 patch once accepted/stable 65 - ./remove-conan-install.patch 66 - ]; 64 + postPatch = '' 65 + substituteInPlace setup.py --replace "'cmake!=3.17,!=3.17.0'," "" 66 + ''; 67 + 68 + preBuild = '' 69 + export DISABLE_CONAN=1 70 + ''; 67 71 68 72 dontUseCmakeConfigure = true; 69 73
-63
pkgs/development/python-modules/qiskit-aer/remove-conan-install.patch
··· 1 - diff --git a/CMakeLists.txt b/CMakeLists.txt 2 - index efeacfc..77bd6bd 100755 3 - --- a/CMakeLists.txt 4 - +++ b/CMakeLists.txt 5 - @@ -121,7 +121,11 @@ endif() 6 - # Looking for external libraries 7 - # 8 - 9 - -setup_conan() 10 - +find_package(muparserx REQUIRED) 11 - +find_package(nlohmann_json REQUIRED) 12 - +find_package(spdlog REQUIRED) 13 - +# for tests only 14 - +find_package(catch2) 15 - 16 - # If we do not set them with a space CMake fails afterwards if nothing is set for this vars! 17 - set(AER_LINKER_FLAGS " ") 18 - @@ -269,16 +273,16 @@ endif() 19 - set(AER_LIBRARIES 20 - ${AER_LIBRARIES} 21 - ${BLAS_LIBRARIES} 22 - - CONAN_PKG::nlohmann_json 23 - + nlohmann_json 24 - Threads::Threads 25 - - CONAN_PKG::spdlog 26 - + spdlog 27 - ${DL_LIB} 28 - ${THRUST_DEPENDANT_LIBS}) 29 - 30 - set(AER_COMPILER_DEFINITIONS ${AER_COMPILER_DEFINITIONS} ${CONAN_DEFINES}) 31 - # Cython build is only enabled if building through scikit-build. 32 - if(SKBUILD) # Terra Addon build 33 - - set(AER_LIBRARIES ${AER_LIBRARIES} CONAN_PKG::muparserx) 34 - + set(AER_LIBRARIES ${AER_LIBRARIES} muparserx) 35 - add_subdirectory(qiskit/providers/aer/pulse/qutip_extra_lite/cy) 36 - add_subdirectory(qiskit/providers/aer/backends/wrappers) 37 - add_subdirectory(src/open_pulse) 38 - diff --git a/setup.py b/setup.py 39 - index fd71e9f..1561cc4 100644 40 - --- a/setup.py 41 - +++ b/setup.py 42 - @@ -11,12 +11,6 @@ import inspect 43 - 44 - PACKAGE_NAME = os.getenv('QISKIT_AER_PACKAGE_NAME', 'qiskit-aer') 45 - 46 - -try: 47 - - from conans import client 48 - -except ImportError: 49 - - subprocess.call([sys.executable, '-m', 'pip', 'install', 'conan']) 50 - - from conans import client 51 - - 52 - try: 53 - from skbuild import setup 54 - except ImportError: 55 - @@ -46,8 +40,6 @@ common_requirements = [ 56 - 57 - setup_requirements = common_requirements + [ 58 - 'scikit-build', 59 - - 'cmake!=3.17,!=3.17.0', 60 - - 'conan>=1.22.2' 61 - ] 62 - 63 - requirements = common_requirements + ['qiskit-terra>=0.12.0']
+3 -8
pkgs/development/python-modules/qiskit-aqua/default.nix
··· 34 34 35 35 buildPythonPackage rec { 36 36 pname = "qiskit-aqua"; 37 - version = "0.8.1"; 37 + version = "0.8.2"; 38 38 39 39 disabled = pythonOlder "3.6"; 40 40 ··· 43 43 owner = "Qiskit"; 44 44 repo = "qiskit-aqua"; 45 45 rev = version; 46 - sha256 = "11qyya3vyq50wpzrzzl8v46yx5p72rhpqhybwn47qgazxgg82r1b"; 46 + sha256 = "sha256-ybf8bXqsVk6quYi0vrfo/Mplk7Nr7tQS7cevXxI9khw="; 47 47 }; 48 48 49 49 # Optional packages: pyscf (see below NOTE) & pytorch. Can install via pip/nix if needed. ··· 73 73 # It can also be installed at runtime from the pip wheel. 74 74 # We disable appropriate tests below to allow building without pyscf installed 75 75 76 - # NOTE: we remove cplex b/c we can't build pythonPackages.cplex. 77 - # cplex is only distributed in manylinux1 wheel (no source), and Nix python is not manylinux1 compatible 78 - 79 76 postPatch = '' 80 - substituteInPlace setup.py \ 81 - --replace "pyscf; sys_platform != 'win32'" "" \ 82 - --replace "cplex; python_version >= '3.6' and python_version < '3.8'" "" 77 + substituteInPlace setup.py --replace "docplex==2.15.194" "docplex" 83 78 84 79 # Add ImportWarning when running qiskit.chemistry (pyscf is a chemistry package) that pyscf is not included 85 80 echo -e "\nimport warnings\ntry: import pyscf;\nexcept ImportError:\n " \
+3 -3
pkgs/development/python-modules/qiskit-ignis/default.nix
··· 23 23 24 24 buildPythonPackage rec { 25 25 pname = "qiskit-ignis"; 26 - version = "0.5.1"; 26 + version = "0.5.2"; 27 27 28 28 disabled = pythonOlder "3.6"; 29 29 ··· 32 32 owner = "Qiskit"; 33 33 repo = "qiskit-ignis"; 34 34 rev = version; 35 - sha256 = "17kplmi17axcbbgw35dzfr3d5bzfymxfni9sf6v14223c5674p4y"; 35 + sha256 = "sha256-Kl3tnoamZrCxwoDdu8betG6Lf3CC3D8R2TYiq8Zl3Aw="; 36 36 }; 37 37 38 38 # hacky, fix https://github.com/Qiskit/qiskit-ignis/issues/532. 39 - # TODO: remove on qiskit-ignis v0.5.1 39 + # TODO: remove on qiskit-ignis v0.5.2 40 40 postPatch = '' 41 41 substituteInPlace qiskit/ignis/mitigation/expval/base_meas_mitigator.py --replace "plt.axes" "'plt.axes'" 42 42 '';
+2 -2
pkgs/development/python-modules/qiskit-terra/default.nix
··· 56 56 57 57 buildPythonPackage rec { 58 58 pname = "qiskit-terra"; 59 - version = "0.16.1"; 59 + version = "0.16.4"; 60 60 61 61 disabled = pythonOlder "3.6"; 62 62 ··· 64 64 owner = "Qiskit"; 65 65 repo = pname; 66 66 rev = version; 67 - sha256 = "0007glsbrvq9swamvz8r76z9nzh46b388y0ds1dypczxpwlp9xcq"; 67 + sha256 = "sha256-/rWlPfpAHoMedKG42jfUYt0Ezq7i+9dkyPllavkg4cc="; 68 68 }; 69 69 70 70 nativeBuildInputs = [ cython ];
+2 -2
pkgs/development/python-modules/qiskit/default.nix
··· 15 15 buildPythonPackage rec { 16 16 pname = "qiskit"; 17 17 # NOTE: This version denotes a specific set of subpackages. See https://qiskit.org/documentation/release_notes.html#version-history 18 - version = "0.23.1"; 18 + version = "0.23.5"; 19 19 20 20 disabled = pythonOlder "3.6"; 21 21 ··· 23 23 owner = "qiskit"; 24 24 repo = "qiskit"; 25 25 rev = version; 26 - sha256 = "0x4cqx1wqqj7h5g3vdag694qjzsmvhpw25yrlcs70mh5ywdp28x1"; 26 + sha256 = "sha256-qtMFztAeqNz0FSgQnOOrvAdPcbUCAal7KrVmpNvvBiY="; 27 27 }; 28 28 29 29 propagatedBuildInputs = [
+16 -4
pkgs/development/python-modules/solo-python/default.nix
··· 1 - { lib, buildPythonPackage, fetchFromGitHub, pythonOlder 2 - , click, ecdsa, fido2, intelhex, pyserial, pyusb, requests}: 1 + { lib 2 + , buildPythonPackage 3 + , fetchFromGitHub 4 + , pythonOlder 5 + , click 6 + , cryptography 7 + , ecdsa 8 + , fido2 9 + , intelhex 10 + , pyserial 11 + , pyusb 12 + , requests 13 + }: 3 14 4 15 buildPythonPackage rec { 5 16 pname = "solo-python"; 6 - version = "0.0.26"; 17 + version = "0.0.27"; 7 18 format = "flit"; 8 19 disabled = pythonOlder "3.6"; # only python>=3.6 is supported 9 20 ··· 11 22 owner = "solokeys"; 12 23 repo = pname; 13 24 rev = version; 14 - sha256 = "05rwqrhr1as6zqhg63d6wga7l42jm2azbav5w6ih8mx5zbxf61yz"; 25 + sha256 = "sha256-OCiKa6mnqJGoNCC4KqI+hMw22tzhdN63x9/KujNJqcE="; 15 26 }; 16 27 17 28 # replaced pinned fido, with unrestricted fido version ··· 21 32 22 33 propagatedBuildInputs = [ 23 34 click 35 + cryptography 24 36 ecdsa 25 37 fido2 26 38 intelhex