diff --git a/pkgs/development/python-modules/tern/default.nix b/pkgs/development/python-modules/tern/default.nix index f5c4b38bd83a..6a9fd47e914d 100644 --- a/pkgs/development/python-modules/tern/default.nix +++ b/pkgs/development/python-modules/tern/default.nix @@ -18,13 +18,16 @@ stevedore, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "tern"; version = "2.12.1"; pyproject = true; + __structuredAttrs = true; + src = fetchPypi { - inherit pname version; + pname = "tern"; + inherit (finalAttrs) version; hash = "sha256-yMIvFiliEHrbZMqvX3ZAROWcqii5VmB54QEYHGRJocA="; }; @@ -61,8 +64,8 @@ buildPythonPackage rec { description = "Software composition analysis tool and Python library that generates a Software Bill of Materials for container images and Dockerfiles"; mainProgram = "tern"; homepage = "https://github.com/tern-tools/tern"; - changelog = "https://github.com/tern-tools/tern/releases/tag/v${version}"; + changelog = "https://github.com/tern-tools/tern/releases/tag/v${finalAttrs.version}"; license = lib.licenses.bsd2; maintainers = [ ]; }; -} +})