Commit f412f180 authored by Fabian Affolter's avatar Fabian Affolter
Browse files

python311Packages.qcodes: 0.40.0 -> 0.41.1

parent be6b4d8c
Loading
Loading
Loading
Loading
+33 −42
Original line number Diff line number Diff line
{ lib
, broadbean
, buildPythonPackage
, cf-xarray
, dask
, deepdiff
, fetchPypi
, pythonOlder
, setuptools
, versioningit
, wheel

  # mandatory
, broadbean
, h5netcdf
, h5py
, hypothesis
, importlib-metadata
, ipywidgets
, ipykernel
, ipython
, ipywidgets
, jsonschema
, lxml
, matplotlib
, numpy
, opencensus
@@ -21,54 +21,44 @@
, opentelemetry-api
, packaging
, pandas
, pyvisa
, ruamel-yaml
, tabulate
, typing-extensions
, tqdm
, uncertainties
, websockets
, wrapt
, xarray
, ipython
, pillow
, rsa

  # optional
, qcodes-loop
, slack-sdk

  # test
, pip
, pytestCheckHook
, deepdiff
, hypothesis
, lxml
, pytest-asyncio
, pytest-mock
, pytest-rerunfailures
, pytest-xdist
, pytestCheckHook
, pythonOlder
, pyvisa
, pyvisa-sim
, qcodes-loop
, rsa
, ruamel-yaml
, setuptools
, sphinx
, tabulate
, tqdm
, typing-extensions
, uncertainties
, versioningit
, websockets
, wheel
, wrapt
, xarray
}:

buildPythonPackage rec {
  pname = "qcodes";
  version = "0.40.0";
  version = "0.41.1";
  format = "pyproject";

  disabled = pythonOlder "3.9";

  src = fetchPypi {
    inherit pname version;
    sha256 = "sha256-C8/ltX3tSxCbbheuel3BjIkRBl/E92lK709QYx+2FL0=";
    hash = "sha256-3Ncg51E4KYbvzlEyesVbTmzmz+UPfFkj3tudVbNYqHQ=";
  };

  postPatch = ''
    substituteInPlace pyproject.toml \
      --replace 'versioningit ~=' 'versioningit >='
  '';

  nativeBuildInputs = [
    setuptools
    versioningit
@@ -77,6 +67,8 @@ buildPythonPackage rec {

  propagatedBuildInputs = [
    broadbean
    cf-xarray
    dask
    h5netcdf
    h5py
    ipykernel
@@ -109,13 +101,8 @@ buildPythonPackage rec {
    loop = [
      qcodes-loop
    ];
    slack = [
      slack-sdk
    ];
  };

  __darwinAllowLocalNetworking = true;

  nativeCheckInputs = [
    deepdiff
    hypothesis
@@ -130,6 +117,8 @@ buildPythonPackage rec {
    sphinx
  ];

  __darwinAllowLocalNetworking = true;

  pytestFlagsArray = [
    # Follow upstream with settings
    "--durations=20"
@@ -138,6 +127,8 @@ buildPythonPackage rec {
  disabledTestPaths = [
    # Test depends on qcodes-loop, causing a cyclic dependency
    "qcodes/tests/dataset/measurement/test_load_legacy_data.py"
    # TypeError
    "qcodes/tests/dataset/test_dataset_basic.py"
  ];

  disabledTests = [
@@ -161,8 +152,8 @@ buildPythonPackage rec {
  '';

  meta = with lib; {
    changelog = "https://github.com/QCoDeS/Qcodes/releases/tag/v${version}";
    description = "Python-based data acquisition framework";
    changelog = "https://github.com/QCoDeS/Qcodes/releases/tag/v${version}";
    downloadPage = "https://github.com/QCoDeS/Qcodes";
    homepage = "https://qcodes.github.io/Qcodes/";
    license = licenses.mit;