01ed8ef136
GitOrigin-RevId: 20fc948445a6c22d4e8d5178e9a6bc6e1f5417c8
46 lines
781 B
Nix
46 lines
781 B
Nix
{ buildPythonPackage
|
|
, lib
|
|
, fetchFromGitHub
|
|
, networkx
|
|
, numpy
|
|
, scipy
|
|
, six
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "geometric";
|
|
version = "1.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "leeping";
|
|
repo = "geomeTRIC";
|
|
rev = version;
|
|
hash = "sha256-y8dh4vZ/d1KL1EpDrle8CH/KIDMCKKZdAyJVgUFjx/o=";
|
|
};
|
|
|
|
patches = [
|
|
./ase-is-optional.patch
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
networkx
|
|
numpy
|
|
scipy
|
|
six
|
|
];
|
|
|
|
preCheck = ''
|
|
export OMP_NUM_THREADS=2
|
|
'';
|
|
|
|
checkInputs = [ pytestCheckHook ];
|
|
|
|
meta = with lib; {
|
|
description = "Geometry optimization code for molecular structures";
|
|
homepage = "https://github.com/leeping/geomeTRIC";
|
|
license = [ licenses.bsd3 ];
|
|
maintainers = [ maintainers.markuskowa ];
|
|
};
|
|
}
|
|
|