2023-07-15 17:15:38 +00:00
|
|
|
{ lib
|
2023-11-16 04:20:00 +00:00
|
|
|
, broadbean
|
2023-07-15 17:15:38 +00:00
|
|
|
, buildPythonPackage
|
2023-11-16 04:20:00 +00:00
|
|
|
, cf-xarray
|
|
|
|
, dask
|
|
|
|
, deepdiff
|
2024-01-02 11:29:13 +00:00
|
|
|
, fetchFromGitHub
|
2023-07-15 17:15:38 +00:00
|
|
|
, h5netcdf
|
|
|
|
, h5py
|
2023-11-16 04:20:00 +00:00
|
|
|
, hypothesis
|
2023-07-15 17:15:38 +00:00
|
|
|
, importlib-metadata
|
|
|
|
, ipykernel
|
2023-11-16 04:20:00 +00:00
|
|
|
, ipython
|
|
|
|
, ipywidgets
|
2023-07-15 17:15:38 +00:00
|
|
|
, jsonschema
|
2023-11-16 04:20:00 +00:00
|
|
|
, lxml
|
2023-07-15 17:15:38 +00:00
|
|
|
, matplotlib
|
|
|
|
, numpy
|
|
|
|
, opencensus
|
|
|
|
, opencensus-ext-azure
|
2023-11-16 04:20:00 +00:00
|
|
|
, opentelemetry-api
|
2023-07-15 17:15:38 +00:00
|
|
|
, packaging
|
|
|
|
, pandas
|
|
|
|
, pillow
|
2023-08-10 07:59:29 +00:00
|
|
|
, pip
|
2023-07-15 17:15:38 +00:00
|
|
|
, pytest-asyncio
|
|
|
|
, pytest-mock
|
|
|
|
, pytest-rerunfailures
|
|
|
|
, pytest-xdist
|
2023-11-16 04:20:00 +00:00
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
|
|
|
, pyvisa
|
2023-07-15 17:15:38 +00:00
|
|
|
, pyvisa-sim
|
2023-11-16 04:20:00 +00:00
|
|
|
, rsa
|
|
|
|
, ruamel-yaml
|
|
|
|
, setuptools
|
2023-07-15 17:15:38 +00:00
|
|
|
, sphinx
|
2023-11-16 04:20:00 +00:00
|
|
|
, tabulate
|
|
|
|
, tqdm
|
|
|
|
, typing-extensions
|
|
|
|
, uncertainties
|
|
|
|
, versioningit
|
|
|
|
, websockets
|
|
|
|
, wheel
|
|
|
|
, wrapt
|
|
|
|
, xarray
|
2023-07-15 17:15:38 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "qcodes";
|
2024-01-13 08:15:51 +00:00
|
|
|
version = "0.42.1";
|
2024-01-02 11:29:13 +00:00
|
|
|
pyproject = true;
|
2023-07-15 17:15:38 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.9";
|
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "QCoDeS";
|
|
|
|
repo = "Qcodes";
|
|
|
|
rev = "refs/tags/v${version}";
|
2024-01-13 08:15:51 +00:00
|
|
|
hash = "sha256-oNQLIL5L3gtFS6yxqgLDI1s4s9UYqxGc8ASqHuZv6Rk=";
|
2023-07-15 17:15:38 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
versioningit
|
2023-08-10 07:59:29 +00:00
|
|
|
wheel
|
2023-07-15 17:15:38 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
broadbean
|
2023-11-16 04:20:00 +00:00
|
|
|
cf-xarray
|
|
|
|
dask
|
2023-07-15 17:15:38 +00:00
|
|
|
h5netcdf
|
|
|
|
h5py
|
|
|
|
ipykernel
|
2023-08-22 20:05:09 +00:00
|
|
|
ipython
|
|
|
|
ipywidgets
|
2023-07-15 17:15:38 +00:00
|
|
|
jsonschema
|
|
|
|
matplotlib
|
|
|
|
numpy
|
|
|
|
opencensus
|
|
|
|
opencensus-ext-azure
|
2023-11-16 04:20:00 +00:00
|
|
|
opentelemetry-api
|
2023-07-15 17:15:38 +00:00
|
|
|
packaging
|
|
|
|
pandas
|
2023-08-22 20:05:09 +00:00
|
|
|
pillow
|
2023-07-15 17:15:38 +00:00
|
|
|
pyvisa
|
2023-08-22 20:05:09 +00:00
|
|
|
rsa
|
2023-07-15 17:15:38 +00:00
|
|
|
ruamel-yaml
|
|
|
|
tabulate
|
|
|
|
tqdm
|
2023-08-22 20:05:09 +00:00
|
|
|
typing-extensions
|
2023-07-15 17:15:38 +00:00
|
|
|
uncertainties
|
|
|
|
websockets
|
|
|
|
wrapt
|
|
|
|
xarray
|
|
|
|
] ++ lib.optionals (pythonOlder "3.10") [
|
|
|
|
importlib-metadata
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeCheckInputs = [
|
|
|
|
deepdiff
|
|
|
|
hypothesis
|
|
|
|
lxml
|
2023-08-10 07:59:29 +00:00
|
|
|
pip
|
2023-07-15 17:15:38 +00:00
|
|
|
pytest-asyncio
|
|
|
|
pytest-mock
|
|
|
|
pytest-rerunfailures
|
|
|
|
pytest-xdist
|
|
|
|
pytestCheckHook
|
|
|
|
pyvisa-sim
|
|
|
|
sphinx
|
|
|
|
];
|
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
__darwinAllowLocalNetworking = true;
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
pytestFlagsArray = [
|
2024-01-02 11:29:13 +00:00
|
|
|
"-v"
|
|
|
|
"-n"
|
|
|
|
"$NIX_BUILD_CORES"
|
2023-07-15 17:15:38 +00:00
|
|
|
# Follow upstream with settings
|
|
|
|
"--durations=20"
|
|
|
|
];
|
|
|
|
|
|
|
|
disabledTestPaths = [
|
2023-08-22 20:05:09 +00:00
|
|
|
# Test depends on qcodes-loop, causing a cyclic dependency
|
2024-01-02 11:29:13 +00:00
|
|
|
"tests/dataset/measurement/test_load_legacy_data.py"
|
2023-11-16 04:20:00 +00:00
|
|
|
# TypeError
|
2024-01-02 11:29:13 +00:00
|
|
|
"tests/dataset/test_dataset_basic.py"
|
2023-07-15 17:15:38 +00:00
|
|
|
];
|
|
|
|
|
2023-08-22 20:05:09 +00:00
|
|
|
disabledTests = [
|
|
|
|
# Tests are time-sensitive and power-consuming
|
2024-01-02 11:29:13 +00:00
|
|
|
# Those tests fails repeatably and are flaky
|
2023-08-22 20:05:09 +00:00
|
|
|
"test_access_channels_by_slice"
|
2024-01-02 11:29:13 +00:00
|
|
|
"test_aggregator"
|
|
|
|
"test_datasaver"
|
2023-08-22 20:05:09 +00:00
|
|
|
"test_do1d_additional_setpoints_shape"
|
|
|
|
"test_dond_1d_additional_setpoints_shape"
|
|
|
|
"test_field_limits"
|
|
|
|
"test_get_array_in_scalar_param_data"
|
|
|
|
"test_get_parameter_data"
|
|
|
|
"test_ramp_safely"
|
|
|
|
];
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"qcodes"
|
|
|
|
];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
export HOME="$TMPDIR"
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python-based data acquisition framework";
|
|
|
|
changelog = "https://github.com/QCoDeS/Qcodes/releases/tag/v${version}";
|
2023-11-16 04:20:00 +00:00
|
|
|
downloadPage = "https://github.com/QCoDeS/Qcodes";
|
|
|
|
homepage = "https://qcodes.github.io/Qcodes/";
|
2023-07-15 17:15:38 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ evilmav ];
|
|
|
|
};
|
|
|
|
}
|