2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
|
|
|
|
# build-system
|
|
|
|
scikit-build-core,
|
|
|
|
cmake,
|
|
|
|
pathspec,
|
|
|
|
ninja,
|
|
|
|
pyproject-metadata,
|
|
|
|
setuptools-scm,
|
|
|
|
|
|
|
|
# dependencies
|
|
|
|
numpy,
|
|
|
|
|
|
|
|
# tests
|
|
|
|
pytestCheckHook,
|
|
|
|
pyyaml,
|
2023-11-16 04:20:00 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "spglib";
|
2024-05-15 15:35:15 +00:00
|
|
|
version = "2.4.0";
|
2023-11-16 04:20:00 +00:00
|
|
|
format = "pyproject";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-05-15 15:35:15 +00:00
|
|
|
hash = "sha256-bmP57mG3DxU6ItO1ULGD2lMfiQR1kX/OIDutRZeqwkM=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
scikit-build-core
|
|
|
|
cmake
|
|
|
|
pathspec
|
|
|
|
ninja
|
|
|
|
pyproject-metadata
|
2024-04-21 15:54:59 +00:00
|
|
|
setuptools-scm
|
2023-11-16 04:20:00 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
dontUseCmakeConfigure = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
propagatedBuildInputs = [ numpy ];
|
2022-05-18 14:49:53 +00:00
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
nativeCheckInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
pyyaml
|
|
|
|
];
|
2022-05-18 14:49:53 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "spglib" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Python bindings for C library for finding and handling crystal symmetries";
|
2022-05-18 14:49:53 +00:00
|
|
|
homepage = "https://spglib.github.io/spglib/";
|
|
|
|
changelog = "https://github.com/spglib/spglib/raw/v${version}/ChangeLog";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ psyanticy ];
|
|
|
|
};
|
|
|
|
}
|