diff --git a/pkgs/development/python-modules/oracledb/default.nix b/pkgs/development/python-modules/oracledb/default.nix index 41cb8ccb3ac3..07feac28f685 100644 --- a/pkgs/development/python-modules/oracledb/default.nix +++ b/pkgs/development/python-modules/oracledb/default.nix @@ -8,7 +8,7 @@ typing-extensions, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "oracledb"; version = "4.0.2"; pyproject = true; @@ -16,7 +16,7 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "oracle"; repo = "python-oracledb"; - tag = "v${version}"; + tag = "v${finalAttrs.version}"; fetchSubmodules = true; hash = "sha256-xT2PWP6kQ0K+9kxe0vNWY5+kMyKZ1J7toiEZBxfsAGE="; }; @@ -39,11 +39,11 @@ buildPythonPackage rec { meta = { description = "Python driver for Oracle Database"; homepage = "https://oracle.github.io/python-oracledb"; - changelog = "https://github.com/oracle/python-oracledb/blob/${src.tag}/doc/src/release_notes.rst"; + changelog = "https://github.com/oracle/python-oracledb/blob/${finalAttrs.src.tag}/doc/src/release_notes.rst"; license = with lib.licenses; [ asl20 # and or upl ]; maintainers = with lib.maintainers; [ harvidsen ]; }; -} +})