diff --git a/pkgs/development/python-modules/pyjnius/default.nix b/pkgs/development/python-modules/pyjnius/default.nix index b2aab1bf5c5f..fdfea0572834 100644 --- a/pkgs/development/python-modules/pyjnius/default.nix +++ b/pkgs/development/python-modules/pyjnius/default.nix @@ -7,14 +7,15 @@ setuptools, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "pyjnius"; version = "1.7.0"; + __structuredAttrs = true; pyproject = true; src = fetchPypi { - inherit pname version; + inherit (finalAttrs) pname version; hash = "sha256-n4FwhISwqE6tPrC6hOU6xXnkxDyhDHRvmJip891Q9U0="; }; @@ -35,8 +36,8 @@ buildPythonPackage rec { meta = { description = "Python module to access Java classes as Python classes using the Java Native Interface (JNI)"; homepage = "https://github.com/kivy/pyjnius"; - changelog = "https://github.com/kivy/pyjnius/blob/${version}/CHANGELOG.md"; + changelog = "https://github.com/kivy/pyjnius/blob/${finalAttrs.version}/CHANGELOG.md"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ ifurther ]; }; -} +})