2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pythonOlder,
|
|
|
|
buildPythonPackage,
|
|
|
|
setuptools,
|
|
|
|
versioningit,
|
|
|
|
qcodes,
|
|
|
|
packaging,
|
|
|
|
pytestCheckHook,
|
|
|
|
pytest-mock,
|
|
|
|
pyvisa-sim,
|
2023-07-15 17:15:38 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "qcodes-contrib-drivers";
|
2024-02-29 20:09:43 +00:00
|
|
|
version = "0.21.0";
|
2023-07-15 17:15:38 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "QCoDeS";
|
|
|
|
repo = "Qcodes_contrib_drivers";
|
2024-02-29 20:09:43 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
sha256 = "sha256-7WkG6Bq4J4PU4eWX52RaupQ8cNzE+sJ7s3PoXFRxG2w=";
|
2023-07-15 17:15:38 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
versioningit
|
|
|
|
];
|
2023-07-15 17:15:38 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
qcodes
|
|
|
|
packaging
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeCheckInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
pytest-mock
|
|
|
|
pyvisa-sim
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "qcodes_contrib_drivers" ];
|
|
|
|
|
|
|
|
# should be fixed starting with 0.19.0, remove at next release
|
2024-06-05 15:53:02 +00:00
|
|
|
disabledTestPaths = [ "qcodes_contrib_drivers/tests/test_Keysight_M3201A.py" ];
|
2023-07-15 17:15:38 +00:00
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
export HOME="$TMPDIR"
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "User contributed drivers for QCoDeS";
|
|
|
|
homepage = "https://github.com/QCoDeS/Qcodes_contrib_drivers";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ evilmav ];
|
|
|
|
};
|
|
|
|
}
|