Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.5 kB · 80 lines
Nix
at master
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081{ lib, buildPythonPackage, fetchFromGitHub,
# build-system rustPlatform,
# dependencies typing-extensions,
# tests numpy, pytestCheckHook,}:
buildPythonPackage rec { pname = "moyopy"; version = "0.5.0"; pyproject = true;
src = fetchFromGitHub { owner = "spglib"; repo = "moyo"; tag = "v${version}"; hash = "sha256-mOXg/BtXCg2ob5rRl9fVcJ1oNuVqOWUcjkAexW9KUfI="; };
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-yaW1nI1BWG8vvbTKc8pIkQXeCqBoJmqyqr1ra8YO6xM="; };
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 ]; };}