diff --git a/pkgs/development/python-modules/qcodes/default.nix b/pkgs/development/python-modules/qcodes/default.nix index f2528a213b08..757e82e773ff 100644 --- a/pkgs/development/python-modules/qcodes/default.nix +++ b/pkgs/development/python-modules/qcodes/default.nix @@ -45,7 +45,7 @@ sphinx-issues, towncrier, - # checks + # tests deepdiff, hypothesis, lxml, @@ -55,20 +55,26 @@ pytest-rerunfailures, pytest-xdist, pytestCheckHook, + writableTmpDirAsHomeHook, }: buildPythonPackage rec { pname = "qcodes"; - version = "0.50.1"; + version = "0.51.0"; pyproject = true; src = fetchFromGitHub { owner = "microsoft"; repo = "Qcodes"; tag = "v${version}"; - hash = "sha256-oNJVOz2FMMhUkYIajeWwRmHzLcXu5qTSQzjk0gciOnE="; + hash = "sha256-QgCMoZrC3ZCo8yayRXw9fvBj5xi+XH2x/E1MuQFULPo="; }; + postPatch = '' + substituteInPlace pyproject.toml \ + --replace-fail 'default-version = "0.0"' 'default-version = "${version}"' + ''; + build-system = [ setuptools versioningit @@ -142,6 +148,7 @@ buildPythonPackage rec { pytestCheckHook pyvisa-sim sphinx + writableTmpDirAsHomeHook ]; __darwinAllowLocalNetworking = true; @@ -182,19 +189,6 @@ buildPythonPackage rec { pythonImportsCheck = [ "qcodes" ]; - # Remove the `asyncio_default_fixture_loop_scope` option as it has been introduced in newer `pytest-asyncio` v0.24 - # which is not in nixpkgs yet: - # pytest.PytestConfigWarning: Unknown config option: asyncio_default_fixture_loop_scope - postPatch = '' - substituteInPlace pyproject.toml \ - --replace-fail 'default-version = "0.0"' 'default-version = "${version}"' \ - --replace-fail 'asyncio_default_fixture_loop_scope = "function"' "" - ''; - - postInstall = '' - export HOME="$TMPDIR" - ''; - meta = { description = "Python-based data acquisition framework"; changelog = "https://github.com/QCoDeS/Qcodes/releases/tag/v${version}";