python312Packages.qcodes: 0.51.0 -> 0.52.0 (#395964)

This commit is contained in:
Gaétan Lepage
2025-04-04 12:57:24 +02:00
committed by GitHub
2 changed files with 24 additions and 26 deletions
@@ -1,65 +1,65 @@
{
lib,
stdenv,
buildPythonPackage,
pythonOlder,
fetchFromGitHub,
fetchpatch2,
# build-system
setuptools,
versioningit,
# dependencies
autobahn,
cffi,
qcodes,
packaging,
pandas,
pytestCheckHook,
qcodes,
python-dotenv,
# tests
pytest-mock,
pytestCheckHook,
pyvisa-sim,
stdenv,
writableTmpDirAsHomeHook,
}:
buildPythonPackage rec {
pname = "qcodes-contrib-drivers";
version = "0.22.0";
version = "0.23.0";
pyproject = true;
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "QCoDeS";
repo = "Qcodes_contrib_drivers";
tag = "v${version}";
sha256 = "sha256-/W5oC5iqYifMR3/s7aSQ2yTJNmkemkc0KVxIU0Es3zY=";
hash = "sha256-m2idBaQl2OVhrY5hcLTeXY6BycGf0ufa/ySgxaU2L/4=";
};
patches = [
(fetchpatch2 {
name = "numpy-v2-compat.patch";
url = "https://github.com/QCoDeS/Qcodes_contrib_drivers/commit/fc792779dbc0b023bdccfe8877dac192d75a88db.patch?full_index=1";
hash = "sha256-G+/IVG9a4mOFudpqEpI+Q/+WwF6lm2nRKjODCdzWHe0=";
})
];
build-system = [
setuptools
versioningit
];
dependencies = [
autobahn
cffi
qcodes
packaging
pandas
qcodes
python-dotenv
];
nativeCheckInputs = [
pytestCheckHook
pytest-mock
pytestCheckHook
pyvisa-sim
writableTmpDirAsHomeHook
];
pythonImportsCheck = [ "qcodes_contrib_drivers" ];
disabledTests =
lib.optionals (stdenv.hostPlatform.isDarwin) [
lib.optionals stdenv.hostPlatform.isDarwin [
# At index 13 diff: 'sour6:volt 0.29000000000000004' != 'sour6:volt 0.29'
"test_stability_diagram_external"
]
@@ -68,10 +68,6 @@ buildPythonPackage rec {
"test_stability_diagram_external"
];
postInstall = ''
export HOME="$TMPDIR"
'';
meta = {
description = "User contributed drivers for QCoDeS";
homepage = "https://github.com/QCoDeS/Qcodes_contrib_drivers";
@@ -51,6 +51,7 @@
lxml,
pip,
pytest-asyncio,
pytest-cov-stub,
pytest-mock,
pytest-rerunfailures,
pytest-xdist,
@@ -60,14 +61,14 @@
buildPythonPackage rec {
pname = "qcodes";
version = "0.51.0";
version = "0.52.0";
pyproject = true;
src = fetchFromGitHub {
owner = "microsoft";
repo = "Qcodes";
tag = "v${version}";
hash = "sha256-QgCMoZrC3ZCo8yayRXw9fvBj5xi+XH2x/E1MuQFULPo=";
hash = "sha256-AQBzYKD4RsPQBtq/FxFwYnSUf8wW87JOb2cOnk9MHDY=";
};
postPatch = ''
@@ -142,6 +143,7 @@ buildPythonPackage rec {
lxml
pip
pytest-asyncio
pytest-cov-stub
pytest-mock
pytest-rerunfailures
pytest-xdist