2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
2024-06-20 14:57:18 +00:00
|
|
|
pythonOlder,
|
|
|
|
fetchFromGitHub,
|
2024-06-05 15:53:02 +00:00
|
|
|
setuptools,
|
|
|
|
versioningit,
|
2024-06-20 14:57:18 +00:00
|
|
|
cffi,
|
2024-06-05 15:53:02 +00:00
|
|
|
qcodes,
|
|
|
|
packaging,
|
2024-06-20 14:57:18 +00:00
|
|
|
pandas,
|
2024-06-05 15:53:02 +00:00
|
|
|
pytestCheckHook,
|
|
|
|
pytest-mock,
|
|
|
|
pyvisa-sim,
|
2024-06-20 14:57:18 +00:00
|
|
|
stdenv,
|
2023-07-15 17:15:38 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "qcodes-contrib-drivers";
|
2024-06-20 14:57:18 +00:00
|
|
|
version = "0.22.0";
|
|
|
|
pyproject = true;
|
2023-07-15 17:15:38 +00:00
|
|
|
|
2024-06-20 14:57:18 +00:00
|
|
|
disabled = pythonOlder "3.9";
|
2023-07-15 17:15:38 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "QCoDeS";
|
|
|
|
repo = "Qcodes_contrib_drivers";
|
2024-02-29 20:09:43 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-06-20 14:57:18 +00:00
|
|
|
sha256 = "sha256-/W5oC5iqYifMR3/s7aSQ2yTJNmkemkc0KVxIU0Es3zY=";
|
2023-07-15 17:15:38 +00:00
|
|
|
};
|
|
|
|
|
2024-06-20 14:57:18 +00:00
|
|
|
build-system = [
|
2024-06-05 15:53:02 +00:00
|
|
|
setuptools
|
|
|
|
versioningit
|
|
|
|
];
|
2023-07-15 17:15:38 +00:00
|
|
|
|
2024-06-20 14:57:18 +00:00
|
|
|
dependencies = [
|
|
|
|
cffi
|
2023-07-15 17:15:38 +00:00
|
|
|
qcodes
|
|
|
|
packaging
|
2024-06-20 14:57:18 +00:00
|
|
|
pandas
|
2023-07-15 17:15:38 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
nativeCheckInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
pytest-mock
|
|
|
|
pyvisa-sim
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "qcodes_contrib_drivers" ];
|
|
|
|
|
2024-06-20 14:57:18 +00:00
|
|
|
disabledTests = lib.optionals (stdenv.hostPlatform.system == "x86_64-darwin") [
|
|
|
|
# At index 13 diff: 'sour6:volt 0.29000000000000004' != 'sour6:volt 0.29'
|
|
|
|
"test_stability_diagram_external"
|
|
|
|
];
|
2023-07-15 17:15:38 +00:00
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
export HOME="$TMPDIR"
|
|
|
|
'';
|
|
|
|
|
2024-06-20 14:57:18 +00:00
|
|
|
meta = {
|
2023-07-15 17:15:38 +00:00
|
|
|
description = "User contributed drivers for QCoDeS";
|
|
|
|
homepage = "https://github.com/QCoDeS/Qcodes_contrib_drivers";
|
2024-06-20 14:57:18 +00:00
|
|
|
changelog = "https://github.com/QCoDeS/Qcodes_contrib_drivers/releases/tag/v${version}";
|
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = with lib.maintainers; [ evilmav ];
|
2023-07-15 17:15:38 +00:00
|
|
|
};
|
|
|
|
}
|