summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Affolter <mail@fabian-affolter.ch>2026-01-18 01:43:18 +0100
committerGitHub <noreply@github.com>2026-01-18 01:43:18 +0100
commitd385537236396bfb7eed1d6c4a14a1a3d25b25d0 (patch)
tree8366d7054570df22f5ac28435d138230106499fd
parentb1a001a2214a9f55abdf9c04b23bf0320c70b245 (diff)
python313Packages.neo4j: migrate to finalAttrs
-rw-r--r--pkgs/development/python-modules/neo4j/default.nix10
1 files changed, 5 insertions, 5 deletions
diff --git a/pkgs/development/python-modules/neo4j/default.nix b/pkgs/development/python-modules/neo4j/default.nix
index b39aa1212866..8817d524e4ee 100644
--- a/pkgs/development/python-modules/neo4j/default.nix
+++ b/pkgs/development/python-modules/neo4j/default.nix
@@ -10,7 +10,7 @@
setuptools,
}:
-buildPythonPackage rec {
+buildPythonPackage (finalAttrs: {
pname = "neo4j";
version = "6.1.0";
pyproject = true;
@@ -18,14 +18,14 @@ buildPythonPackage rec {
src = fetchFromGitHub {
owner = "neo4j";
repo = "neo4j-python-driver";
- tag = version;
+ tag = finalAttrs.version;
hash = "sha256-1Ef9SMJid0q+tI8hceriNu2vsLAyW4Jxt53ifcmi5VA=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail "setuptools ==" "setuptools >=" \
- --replace-fail 'dynamic = ["version"]' 'version = "${version}"'
+ --replace-fail 'dynamic = ["version"]' 'version = "${finalAttrs.version}"'
'';
build-system = [ setuptools ];
@@ -49,8 +49,8 @@ buildPythonPackage rec {
meta = {
description = "Neo4j Bolt Driver for Python";
homepage = "https://github.com/neo4j/neo4j-python-driver";
- changelog = "https://github.com/neo4j/neo4j-python-driver/releases/tag/${src.tag}";
+ changelog = "https://github.com/neo4j/neo4j-python-driver/releases/tag/${finalAttrs.src.tag}";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ fab ];
};
-}
+})