Something went wrong. Try again.
Nix Packages collection & NixOS github.com/NixOS/nixpkgs
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182{ lib, buildPythonPackage, fetchFromGitHub,
# build-system rustPlatform,
# dependencies typing-extensions,
# tests numpy, pytestCheckHook,}:
buildPythonPackage (finalAttrs: { pname = "moyopy"; version = "0.21.0"; pyproject = true; __structuredAttrs = true;
src = fetchFromGitHub { owner = "spglib"; repo = "moyo"; tag = "v${finalAttrs.version}"; hash = "sha256-Eay/MjFy27FVcLLA9k28SzkUoj6KMd2mYYYhMa7vjfo="; };
sourceRoot = "${finalAttrs.src.name}/moyopy"; cargoRoot = "..";
nativeBuildInputs = with rustPlatform; [ cargoSetupHook maturinBuildHook ];
env = { CARGO_TARGET_DIR = "./target"; };
cargoDeps = rustPlatform.fetchCargoVendor { inherit (finalAttrs) pname version src sourceRoot cargoRoot ; hash = "sha256-OAL8LG3uvVcRRomWBRhtlc3bBeG5rhEH4ToHWl+1HGI="; };
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/${finalAttrs.src.tag}"; license = lib.licenses.asl20; maintainers = with lib.maintainers; [ GaetanLepage ]; };})