2ce5db779a
GitOrigin-RevId: 48037fd90426e44e4bf03e6479e88a11453b9b66
31 lines
855 B
Nix
31 lines
855 B
Nix
{ lib, buildPythonPackage, fetchPypi, numpy, pytest, pyyaml }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "spglib";
|
|
version = "1.16.5";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "sha256-Lqzv1TzGRLqakMRoH9bJNLa92BjBE9fzGZBOB41dq5M=";
|
|
};
|
|
|
|
propagatedBuildInputs = [ numpy ];
|
|
|
|
checkInputs = [ pytest pyyaml ];
|
|
|
|
# pytestCheckHook doesn't work
|
|
# ImportError: cannot import name '_spglib' from partially initialized module 'spglib'
|
|
checkPhase = ''
|
|
pytest
|
|
'';
|
|
|
|
pythonImportsCheck = [ "spglib" ];
|
|
|
|
meta = with lib; {
|
|
description = "Python bindings for C library for finding and handling crystal symmetries";
|
|
homepage = "https://spglib.github.io/spglib/";
|
|
changelog = "https://github.com/spglib/spglib/raw/v${version}/ChangeLog";
|
|
license = licenses.bsd3;
|
|
maintainers = with maintainers; [ psyanticy ];
|
|
};
|
|
}
|