2022-11-21 17:40:18 +00:00
|
|
|
{ buildPythonPackage
|
|
|
|
, lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, networkx
|
|
|
|
, numpy
|
|
|
|
, scipy
|
|
|
|
, six
|
2022-02-10 20:34:41 +00:00
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "geometric";
|
2022-11-21 17:40:18 +00:00
|
|
|
version = "1.0";
|
2022-02-10 20:34:41 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "leeping";
|
|
|
|
repo = "geomeTRIC";
|
|
|
|
rev = version;
|
2022-11-21 17:40:18 +00:00
|
|
|
hash = "sha256-y8dh4vZ/d1KL1EpDrle8CH/KIDMCKKZdAyJVgUFjx/o=";
|
2022-02-10 20:34:41 +00:00
|
|
|
};
|
|
|
|
|
2022-11-21 17:40:18 +00:00
|
|
|
patches = [
|
|
|
|
./ase-is-optional.patch
|
|
|
|
];
|
|
|
|
|
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
|
|
|
|
'';
|
|
|
|
|
2022-02-10 20:34:41 +00:00
|
|
|
checkInputs = [ pytestCheckHook ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Geometry optimization code for molecular structures";
|
|
|
|
homepage = "https://github.com/leeping/geomeTRIC";
|
|
|
|
license = [ licenses.bsd3 ];
|
|
|
|
maintainers = [ maintainers.markuskowa ];
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|