mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-15 00:29:54 +00:00
The nixpkgs-unstable channel's programs.sqlite was used to identify packages producing exactly one binary, and these automatically added to their package definitions wherever possible.
52 lines
1.0 KiB
Nix
52 lines
1.0 KiB
Nix
{ buildPythonPackage
|
|
, lib
|
|
, fetchFromGitHub
|
|
, fetchpatch
|
|
, networkx
|
|
, numpy
|
|
, scipy
|
|
, six
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "geometric";
|
|
version = "1.0.2";
|
|
format = "setuptools";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "leeping";
|
|
repo = "geomeTRIC";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-DmrKLVQrPQDzTMxqEImnvRr3Wb2R3+hxtDVCN9XUcFM=";
|
|
};
|
|
|
|
patches = [ (fetchpatch {
|
|
name = "ase-is-optional";
|
|
url = "https://github.com/leeping/geomeTRIC/commit/aff6e4411980ac9cbe112a050c3a34ba7e305a43.patch";
|
|
hash = "sha256-JGGPX+JwkQ8Imgmyx+ReRTV+k6mxHYgm+Nd8WUjbFEg=";
|
|
}) ];
|
|
|
|
propagatedBuildInputs = [
|
|
networkx
|
|
numpy
|
|
scipy
|
|
six
|
|
];
|
|
|
|
preCheck = ''
|
|
export OMP_NUM_THREADS=2
|
|
'';
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
meta = with lib; {
|
|
description = "Geometry optimization code for molecular structures";
|
|
mainProgram = "geometric-optimize";
|
|
homepage = "https://github.com/leeping/geomeTRIC";
|
|
license = [ licenses.bsd3 ];
|
|
maintainers = [ maintainers.markuskowa ];
|
|
};
|
|
}
|
|
|