diff --git a/pkgs/development/python-modules/moyopy/default.nix b/pkgs/development/python-modules/moyopy/default.nix index 6d6a2f2eaad9..4512eba4afbe 100644 --- a/pkgs/development/python-modules/moyopy/default.nix +++ b/pkgs/development/python-modules/moyopy/default.nix @@ -14,19 +14,19 @@ pytestCheckHook, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "moyopy"; - version = "0.7.4"; + version = "0.7.7"; pyproject = true; src = fetchFromGitHub { owner = "spglib"; repo = "moyo"; - tag = "v${version}"; - hash = "sha256-3NL2++a2OxasgoEZbyo9/bfKDxH7e1J/kaKiwvygAZY="; + tag = "v${finalAttrs.version}"; + hash = "sha256-+esZ6LiPJG1Oof+6e3i6wZCLEYPdKfTbgXXucJW01sc="; }; - sourceRoot = "${src.name}/moyopy"; + sourceRoot = "${finalAttrs.src.name}/moyopy"; cargoRoot = ".."; nativeBuildInputs = with rustPlatform; [ @@ -39,14 +39,14 @@ buildPythonPackage rec { }; cargoDeps = rustPlatform.fetchCargoVendor { - inherit + inherit (finalAttrs) pname version src sourceRoot cargoRoot ; - hash = "sha256-nNKc+U3T6Iv8UqrkKlgCsehBGzjCjvEhTJMLRge27h4="; + hash = "sha256-xVSAEEbqZ5Z7CnLECyFw1OMPmjiHtdnzoI65sESd8D8="; }; build-system = [ @@ -73,8 +73,8 @@ buildPythonPackage rec { meta = { description = "Python interface of moyo, a fast and robust crystal symmetry finder"; homepage = "https://spglib.github.io/moyo/python/"; - changelog = "https://github.com/spglib/moyo/releases/tag/v${version}"; + changelog = "https://github.com/spglib/moyo/releases/tag/${finalAttrs.src.tag}"; license = lib.licenses.asl20; maintainers = with lib.maintainers; [ GaetanLepage ]; }; -} +})