2022-11-21 17:40:18 +00:00
|
|
|
{ buildPythonPackage
|
|
|
|
, lib
|
|
|
|
, fetchFromGitHub
|
2023-07-15 17:15:38 +00:00
|
|
|
, fetchpatch
|
2022-11-21 17:40:18 +00:00
|
|
|
, networkx
|
|
|
|
, numpy
|
|
|
|
, scipy
|
|
|
|
, six
|
2022-02-10 20:34:41 +00:00
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "geometric";
|
2024-02-07 01:22:34 +00:00
|
|
|
version = "1.0.2";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2022-02-10 20:34:41 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "leeping";
|
|
|
|
repo = "geomeTRIC";
|
2024-02-07 01:22:34 +00:00
|
|
|
rev = "refs/tags/${version}";
|
|
|
|
hash = "sha256-DmrKLVQrPQDzTMxqEImnvRr3Wb2R3+hxtDVCN9XUcFM=";
|
2022-02-10 20:34:41 +00:00
|
|
|
};
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
patches = [ (fetchpatch {
|
|
|
|
name = "ase-is-optional";
|
|
|
|
url = "https://github.com/leeping/geomeTRIC/commit/aff6e4411980ac9cbe112a050c3a34ba7e305a43.patch";
|
|
|
|
hash = "sha256-JGGPX+JwkQ8Imgmyx+ReRTV+k6mxHYgm+Nd8WUjbFEg=";
|
|
|
|
}) ];
|
2022-11-21 17:40:18 +00:00
|
|
|
|
2022-02-10 20:34:41 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
networkx
|
|
|
|
numpy
|
|
|
|
scipy
|
|
|
|
six
|
|
|
|
];
|
|
|
|
|
2022-11-21 17:40:18 +00:00
|
|
|
preCheck = ''
|
|
|
|
export OMP_NUM_THREADS=2
|
|
|
|
'';
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2022-02-10 20:34:41 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Geometry optimization code for molecular structures";
|
|
|
|
homepage = "https://github.com/leeping/geomeTRIC";
|
|
|
|
license = [ licenses.bsd3 ];
|
|
|
|
maintainers = [ maintainers.markuskowa ];
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|