Files
nixpkgs/pkgs/development/python-modules/moyopy/default.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

81 lines
1.5 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
# build-system
rustPlatform,
# dependencies
typing-extensions,
# tests
numpy,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "moyopy";
version = "0.6.0";
pyproject = true;
src = fetchFromGitHub {
owner = "spglib";
repo = "moyo";
tag = "v${version}";
hash = "sha256-4Dete4rtkfs0Ytf0YSdyDNP51C8GlaxKdQlS1l8hj44=";
};
sourceRoot = "${src.name}/moyopy";
cargoRoot = "..";
nativeBuildInputs = with rustPlatform; [
cargoSetupHook
maturinBuildHook
];
env = {
CARGO_TARGET_DIR = "./target";
};
cargoDeps = rustPlatform.fetchCargoVendor {
inherit
pname
version
src
sourceRoot
cargoRoot
;
hash = "sha256-z45jmkPKfX7kYefFaU/F6SopK0dI6xtgrkllaergtwI=";
};
build-system = [
rustPlatform.cargoSetupHook
rustPlatform.maturinBuildHook
];
dependencies = [
typing-extensions
];
pythonImportsCheck = [ "moyopy" ];
nativeCheckInputs = [
numpy
pytestCheckHook
];
disabledTestPaths = [
# Circular dependency with pymatgen
"python/tests/test_interface.py"
];
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}";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ GaetanLepage ];
};
}