Skip to content

Commit

Permalink
gemmi: 0.6.7 -> 0.7.0 (NixOS#370505)
Browse files Browse the repository at this point in the history
  • Loading branch information
natsukium authored Jan 10, 2025
2 parents c0b4b96 + 1f1841a commit 7983a01
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions pkgs/by-name/ge/gemmi/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,21 @@

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 =
[ cmake ]
++ lib.optionals enablePython (
with python3Packages;
[
pybind11
nanobind
python
pythonImportsCheckHook
]
Expand All @@ -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" ];

Expand Down

0 comments on commit 7983a01

Please sign in to comment.