python3Packages.qcodes-contrib-drivers: cleanup, fix

This commit is contained in:
Gaetan Lepage
2026-08-14 23:19:30 +00:00
parent 15e016c09b
commit 2baef247b3

View File

@@ -13,8 +13,8 @@
cffi,
packaging,
pandas,
qcodes,
python-dotenv,
qcodes,
# tests
pytest-mock,
@@ -27,6 +27,7 @@ buildPythonPackage (finalAttrs: {
pname = "qcodes-contrib-drivers";
version = "0.25.0";
pyproject = true;
__structuredAttrs = true;
src = fetchFromGitHub {
owner = "QCoDeS";
@@ -35,6 +36,15 @@ buildPythonPackage (finalAttrs: {
hash = "sha256-4ZVNd1cHqM3tuGcOxlBN8WX9i9u3XFlJ0zr06n7zpmI=";
};
postPatch =
# versioningit derives the version from git, which is unavailable in the sandbox
''
substituteInPlace pyproject.toml \
--replace-fail \
'default-version = "0.0"' \
'default-version = "${finalAttrs.version}"'
'';
build-system = [
setuptools
versioningit
@@ -45,8 +55,9 @@ buildPythonPackage (finalAttrs: {
cffi
packaging
pandas
qcodes
python-dotenv
qcodes
versioningit
];
nativeCheckInputs = [