diff --git a/pkgs/development/python-modules/azure-core/default.nix b/pkgs/development/python-modules/azure-core/default.nix index 1206bf48710c..44f3c1b81085 100644 --- a/pkgs/development/python-modules/azure-core/default.nix +++ b/pkgs/development/python-modules/azure-core/default.nix @@ -14,19 +14,22 @@ , requests , six , trio -, typing-extensions }: +, typing-extensions +}: buildPythonPackage rec { - version = "1.26.3"; + version = "1.28.0"; pname = "azure-core"; - disabled = pythonOlder "3.6"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; __darwinAllowLocalNetworking = true; src = fetchPypi { inherit pname version; extension = "zip"; - hash = "sha256-rL0NqpZ1zohiPaNcgNgZza+pFzHe5rJpXGTXyp2oLbQ="; + hash = "sha256-6e78Zvwf3lbatvBNTl0SxgdU1an6Sb3P2FNPyW7ZNr0="; }; propagatedBuildInputs = [ @@ -35,9 +38,14 @@ buildPythonPackage rec { typing-extensions ]; + passthru.optional-dependencies = { + aio = [ + aiohttp + ]; + }; + nativeCheckInputs = [ aiodns - aiohttp flask mock pytest @@ -45,14 +53,17 @@ buildPythonPackage rec { pytest-asyncio pytestCheckHook trio - ]; + ] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies); # test server needs to be available preCheck = '' export PYTHONPATH=tests/testserver_tests/coretestserver:$PYTHONPATH ''; - pytestFlagsArray = [ "tests/" ]; + pytestFlagsArray = [ + "tests/" + ]; + # disable tests which touch network disabledTests = [ "aiohttp" @@ -68,6 +79,7 @@ buildPythonPackage rec { ] ++ lib.optionals stdenv.isDarwin [ "location_polling_fail" ]; + disabledTestPaths = [ # requires testing modules which aren't published, and likely to create cyclic dependencies "tests/test_connection_string_parsing.py" @@ -88,6 +100,7 @@ buildPythonPackage rec { meta = with lib; { description = "Microsoft Azure Core Library for Python"; homepage = "https://github.com/Azure/azure-sdk-for-python"; + changelog = "https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CHANGELOG.md"; license = licenses.mit; maintainers = with maintainers; [ jonringer ]; }; diff --git a/pkgs/development/python-modules/azure-eventhub/default.nix b/pkgs/development/python-modules/azure-eventhub/default.nix index 571279f7ffe0..8d47f60afcb9 100644 --- a/pkgs/development/python-modules/azure-eventhub/default.nix +++ b/pkgs/development/python-modules/azure-eventhub/default.nix @@ -9,7 +9,7 @@ buildPythonPackage rec { pname = "azure-eventhub"; - version = "5.11.2"; + version = "5.11.3"; format = "setuptools"; disabled = pythonOlder "3.6"; @@ -17,7 +17,7 @@ buildPythonPackage rec { src = fetchPypi { inherit pname version; extension = "zip"; - hash = "sha256-/QVHPlElUNT7whLdMe1k8wYXePg+tQRBmXmZJM1w6fU="; + hash = "sha256-mXXMvKHk+U+VtBG5zPbKJcXrRMDssnU/18wGXT5xSK8="; }; propagatedBuildInputs = [ diff --git a/pkgs/development/python-modules/azure-servicebus/default.nix b/pkgs/development/python-modules/azure-servicebus/default.nix index ab62978e2bd7..abc9aa64b22d 100644 --- a/pkgs/development/python-modules/azure-servicebus/default.nix +++ b/pkgs/development/python-modules/azure-servicebus/default.nix @@ -13,7 +13,7 @@ buildPythonPackage rec { pname = "azure-servicebus"; - version = "7.11.0"; + version = "7.11.1"; format = "setuptools"; disabled = pythonOlder "3.6"; @@ -21,7 +21,7 @@ buildPythonPackage rec { src = fetchPypi { inherit pname version; extension = "zip"; - hash = "sha256-JMmfs1d1EFilHJ1Dud4mGJynRHLx+Uq95nZM2D+NecE="; + hash = "sha256-iWbHtpFSiQTcpSQ6S8lrUWAi9kjesh1ZvKPVvNquxYU="; }; propagatedBuildInputs = [ diff --git a/pkgs/development/python-modules/azure-storage-blob/default.nix b/pkgs/development/python-modules/azure-storage-blob/default.nix index 3dd83966a29c..a537e32c2545 100644 --- a/pkgs/development/python-modules/azure-storage-blob/default.nix +++ b/pkgs/development/python-modules/azure-storage-blob/default.nix @@ -13,7 +13,7 @@ buildPythonPackage rec { pname = "azure-storage-blob"; - version = "12.16.0"; + version = "12.17.0"; format = "setuptools"; disabled = pythonOlder "3.7"; @@ -21,7 +21,7 @@ buildPythonPackage rec { src = fetchPypi { inherit pname version; extension = "zip"; - hash = "sha256-Q7RfGaUYpcaJVjLyY7OCXrwjV08lzIS2bhYwphYORm8="; + hash = "sha256-wUt4WhcFCzD8MmoxW9rmvEoHiFX0+UpMMDrXSkjcjGM="; }; propagatedBuildInputs = [ diff --git a/pkgs/development/python-modules/azure-storage-file-share/default.nix b/pkgs/development/python-modules/azure-storage-file-share/default.nix index df5ab11e6c93..1582ea52bc9d 100644 --- a/pkgs/development/python-modules/azure-storage-file-share/default.nix +++ b/pkgs/development/python-modules/azure-storage-file-share/default.nix @@ -11,7 +11,7 @@ buildPythonPackage rec { pname = "azure-storage-file-share"; - version = "12.12.0"; + version = "12.13.0"; format = "setuptools"; disabled = pythonOlder "3.7"; @@ -19,7 +19,7 @@ buildPythonPackage rec { src = fetchPypi { inherit pname version; extension = "zip"; - hash = "sha256-z35H90n8Buy5m2RhKrS9lCJ7mTFJekwnwoZXF8PaoIk="; + hash = "sha256-ozqVIWPvAl0doaqK77P+VBhx9q+6Ljk/q7WrAP2ZPm8="; }; propagatedBuildInputs = [ diff --git a/pkgs/development/python-modules/qcodes/default.nix b/pkgs/development/python-modules/qcodes/default.nix index 783194fdaa91..db565e11d02d 100644 --- a/pkgs/development/python-modules/qcodes/default.nix +++ b/pkgs/development/python-modules/qcodes/default.nix @@ -10,7 +10,6 @@ , h5netcdf , h5py , importlib-metadata -, importlib-resources , ipywidgets , ipykernel , jsonschema @@ -35,6 +34,7 @@ # optional , qcodes-loop +, slack-sdk # test , pytestCheckHook @@ -51,17 +51,20 @@ buildPythonPackage rec { pname = "qcodes"; - version = "0.38.1"; - - disabled = pythonOlder "3.8"; + version = "0.39.0"; format = "pyproject"; + disabled = pythonOlder "3.9"; + src = fetchPypi { inherit pname version; - sha256 = "sha256-whUGkRvYQOdYxWoj7qhv2kiiyTwq3ZLLipI424PBzFg="; + sha256 = "sha256-zKn9LN7FBxKUfYSxUV1O6fB2s/B5bQpGDZTrK4DcxmU="; }; - nativeBuildInputs = [ setuptools versioningit ]; + nativeBuildInputs = [ + setuptools + versioningit + ]; propagatedBuildInputs = [ broadbean @@ -90,20 +93,20 @@ buildPythonPackage rec { rsa ] ++ lib.optionals (pythonOlder "3.10") [ importlib-metadata - ] ++ lib.optionals (pythonOlder "3.9") [ - importlib-resources ]; passthru.optional-dependencies = { loop = [ qcodes-loop ]; + slack = [ + slack-sdk + ]; }; __darwinAllowLocalNetworking = true; nativeCheckInputs = [ - pytestCheckHook deepdiff hypothesis lxml @@ -111,25 +114,34 @@ buildPythonPackage rec { pytest-mock pytest-rerunfailures pytest-xdist + pytestCheckHook pyvisa-sim sphinx ]; + pytestFlagsArray = [ + # Follow upstream with settings + "--durations=20" + ]; + disabledTestPaths = [ # depends on qcodes-loop, causing a cyclic dependency "qcodes/tests/dataset/measurement/test_load_legacy_data.py" ]; - pythonImportsCheck = [ "qcodes" ]; + pythonImportsCheck = [ + "qcodes" + ]; postInstall = '' export HOME="$TMPDIR" ''; - meta = { + meta = with lib; { homepage = "https://qcodes.github.io/Qcodes/"; description = "Python-based data acquisition framework"; - license = lib.licenses.mit; - maintainers = with lib.maintainers; [ evilmav ]; + changelog = "https://github.com/QCoDeS/Qcodes/releases/tag/v${version}"; + license = licenses.mit; + maintainers = with maintainers; [ evilmav ]; }; }