2023-07-15 17:15:38 +00:00
|
|
|
{ lib
|
2023-10-09 19:29:22 +00:00
|
|
|
, stdenv
|
2023-07-15 17:15:38 +00:00
|
|
|
, buildPythonPackage
|
2023-11-16 04:20:00 +00:00
|
|
|
, fetchPypi
|
2023-07-15 17:15:38 +00:00
|
|
|
, h5py
|
2023-11-16 04:20:00 +00:00
|
|
|
, hickle
|
|
|
|
, hypothesis
|
|
|
|
, ipython
|
2023-07-15 17:15:38 +00:00
|
|
|
, lazy-loader
|
|
|
|
, matplotlib
|
|
|
|
, numpy
|
|
|
|
, pandas
|
2023-11-16 04:20:00 +00:00
|
|
|
, pyqt5
|
|
|
|
, pyqtgraph
|
|
|
|
, pytest-mock
|
|
|
|
, pytest-xdist
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
|
|
|
, qcodes
|
2023-10-09 19:29:22 +00:00
|
|
|
, setuptools
|
2023-11-16 04:20:00 +00:00
|
|
|
, slack-sdk
|
2023-07-15 17:15:38 +00:00
|
|
|
, versioningit
|
2023-10-09 19:29:22 +00:00
|
|
|
, wheel
|
2023-07-15 17:15:38 +00:00
|
|
|
, xarray
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "qcodes-loop";
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "0.1.2";
|
|
|
|
pyproject = true;
|
2023-07-15 17:15:38 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit version;
|
|
|
|
pname = "qcodes_loop";
|
2023-11-16 04:20:00 +00:00
|
|
|
hash = "sha256-TizNSC49n4Xc2BmJNziARlVXYQxp/LtwmKpgqQkQ3a8=";
|
2023-07-15 17:15:38 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2023-10-09 19:29:22 +00:00
|
|
|
setuptools
|
2023-07-15 17:15:38 +00:00
|
|
|
versioningit
|
2023-10-09 19:29:22 +00:00
|
|
|
wheel
|
2023-07-15 17:15:38 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
qcodes
|
|
|
|
h5py
|
|
|
|
lazy-loader
|
|
|
|
matplotlib
|
|
|
|
numpy
|
|
|
|
pandas
|
|
|
|
xarray
|
|
|
|
hickle
|
|
|
|
ipython
|
|
|
|
];
|
|
|
|
|
|
|
|
passthru.optional-dependencies = {
|
|
|
|
qtplot = [
|
|
|
|
pyqtgraph
|
|
|
|
];
|
|
|
|
slack = [
|
|
|
|
slack-sdk
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeCheckInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
hypothesis
|
|
|
|
pytest-xdist
|
|
|
|
pytest-mock
|
|
|
|
pyqt5
|
|
|
|
];
|
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"qcodes_loop"
|
2023-07-15 17:15:38 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
export HOME="$TMPDIR"
|
|
|
|
'';
|
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
disabledTests = [
|
|
|
|
# AssertionError: False is not true
|
|
|
|
"TestHDF5_Format"
|
|
|
|
];
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Features previously in QCoDeS";
|
|
|
|
homepage = "https://github.com/QCoDeS/Qcodes_loop";
|
2023-11-16 04:20:00 +00:00
|
|
|
changelog = "https://github.com/QCoDeS/Qcodes_loop/releases/tag/v${version}";
|
2023-07-15 17:15:38 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ evilmav ];
|
2023-10-09 19:29:22 +00:00
|
|
|
# Some tests fail on this platform
|
|
|
|
broken = stdenv.isDarwin;
|
2023-07-15 17:15:38 +00:00
|
|
|
};
|
|
|
|
}
|