2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
buildPythonPackage,
|
|
|
|
lib,
|
|
|
|
fetchFromGitHub,
|
2024-07-27 06:49:29 +00:00
|
|
|
setuptools,
|
|
|
|
setuptools-scm,
|
2024-06-05 15:53:02 +00:00
|
|
|
numpy,
|
|
|
|
scipy,
|
|
|
|
attrs,
|
2024-07-27 06:49:29 +00:00
|
|
|
pytest-xdist,
|
|
|
|
pytestCheckHook,
|
2024-06-05 15:53:02 +00:00
|
|
|
}:
|
2022-03-30 09:31:56 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "iodata";
|
2024-07-27 06:49:29 +00:00
|
|
|
version = "1.0.0a4";
|
|
|
|
pyproject = true;
|
2022-03-30 09:31:56 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "theochem";
|
|
|
|
repo = pname;
|
2024-07-27 06:49:29 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
hash = "sha256-ld6V+/8lg4Du6+mHU5XuXXyMpWwyepXurerScg/bf2Q=";
|
2022-03-30 09:31:56 +00:00
|
|
|
};
|
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
build-system = [
|
|
|
|
setuptools
|
|
|
|
setuptools-scm
|
2024-06-05 15:53:02 +00:00
|
|
|
];
|
2024-07-27 06:49:29 +00:00
|
|
|
|
|
|
|
dependencies = [
|
2024-06-05 15:53:02 +00:00
|
|
|
numpy
|
|
|
|
scipy
|
|
|
|
attrs
|
|
|
|
];
|
2022-03-30 09:31:56 +00:00
|
|
|
|
2024-02-29 20:09:43 +00:00
|
|
|
pythonImportsCheck = [ "iodata" ];
|
2024-07-27 06:49:29 +00:00
|
|
|
|
|
|
|
nativeCheckInputs = [
|
|
|
|
pytest-xdist
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2022-03-30 09:31:56 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python library for reading, writing, and converting computational chemistry file formats and generating input files";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "iodata-convert";
|
2022-03-30 09:31:56 +00:00
|
|
|
homepage = "https://github.com/theochem/iodata";
|
|
|
|
license = licenses.lgpl3Only;
|
|
|
|
maintainers = [ maintainers.sheepforce ];
|
|
|
|
};
|
|
|
|
}
|