python313Packages.influxdb3-python: migrate to finalAttrs

This commit is contained in:
Fabian Affolter
2026-01-26 13:10:28 +01:00
parent c25c668cbf
commit addeabfe6c
@@ -12,7 +12,7 @@
urllib3,
}:
buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
pname = "influxdb3-python";
version = "0.17.0";
pyproject = true;
@@ -20,14 +20,14 @@ buildPythonPackage rec {
src = fetchFromGitHub {
owner = "InfluxCommunity";
repo = "influxdb3-python";
tag = "v${version}";
tag = "v${finalAttrs.version}";
hash = "sha256-DqCA0sk5xOQTFoJR+b/r+PN9bJaWSkgsFUK1o1qaAoU=";
};
postPatch = ''
# Upstream falls back to a default version if not in a GitHub Actions
substituteInPlace setup.py \
--replace-fail "version=get_version()," "version = '${version}',"
--replace-fail "version=get_version()," "version = '${finalAttrs.version}',"
'';
build-system = [ setuptools ];
@@ -62,8 +62,8 @@ buildPythonPackage rec {
meta = {
description = "Python module that provides a simple and convenient way to interact with InfluxDB 3.0";
homepage = "https://github.com/InfluxCommunity/influxdb3-python";
changelog = "https://github.com/InfluxCommunity/influxdb3-python/releases/tag/${src.tag}";
changelog = "https://github.com/InfluxCommunity/influxdb3-python/releases/tag/${finalAttrs.src.tag}";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ fab ];
};
}
})