From 1f1841a61454a4f1e207f20320260fb89d666dcb Mon Sep 17 00:00:00 2001 From: natsukium Date: Fri, 3 Jan 2025 14:14:17 +0900 Subject: [PATCH] gemmi: 0.6.7 -> 0.7.0 Diff: https://github.com/project-gemmi/gemmi/compare/refs/tags/v0.6.7...v0.7.0 Changelog: https://github.com/project-gemmi/gemmi/releases/tag/v0.7.0 --- pkgs/by-name/ge/gemmi/package.nix | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/pkgs/by-name/ge/gemmi/package.nix b/pkgs/by-name/ge/gemmi/package.nix index 48d78ec8d75b..4082147ec513 100644 --- a/pkgs/by-name/ge/gemmi/package.nix +++ b/pkgs/by-name/ge/gemmi/package.nix @@ -11,13 +11,13 @@ stdenv.mkDerivation (finalAttrs: { pname = "gemmi"; - version = "0.6.7"; + version = "0.7.0"; src = fetchFromGitHub { owner = "project-gemmi"; repo = "gemmi"; tag = "v${finalAttrs.version}"; - hash = "sha256-Y7gQSh9C7smoXuGWgpJI3hPIg06Jns+1dBpmMxuCrKE="; + hash = "sha256-XOu//yY5CnnzjvGu7IIC5GvecYsnZQV3Y2wvGVTwWzU="; }; nativeBuildInputs = @@ -25,7 +25,7 @@ stdenv.mkDerivation (finalAttrs: { ++ lib.optionals enablePython ( with python3Packages; [ - pybind11 + nanobind python pythonImportsCheckHook ] @@ -44,7 +44,15 @@ stdenv.mkDerivation (finalAttrs: { doInstallCheck = enablePython; - nativeInstallCheckInputs = [ python3Packages.pytestCheckHook ]; + nativeInstallCheckInputs = with python3Packages; [ + # biopython + numpy + pytestCheckHook + ]; + + preInstallCheck = '' + export PATH=$out/bin:$PATH + ''; pytestFlagsArray = [ "../tests" ];