diff options
| author | David Elsing <david.elsing@posteo.net> | 2025-03-30 22:06:57 +0000 |
|---|---|---|
| committer | Andreas Enge <andreas@enge.fr> | 2025-04-07 12:39:28 +0200 |
| commit | b2ba3def99c88610c55f7f95320ea125a85a9834 (patch) | |
| tree | 3dcbf37677f71553fb63765dbd905a2b71a86790 | |
| parent | aa5504971756ca69559e7451e55e2ac44bd60f21 (diff) | |
gnu: Add pubchem-align3d.
* gnu/packages/chemistry.scm (pubchem-align3d): New variable.
Signed-off-by: Andreas Enge <andreas@enge.fr>
| -rw-r--r-- | gnu/packages/chemistry.scm | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/gnu/packages/chemistry.scm b/gnu/packages/chemistry.scm index b24a45b8e8..e3e485d42a 100644 --- a/gnu/packages/chemistry.scm +++ b/gnu/packages/chemistry.scm @@ -1070,6 +1070,52 @@ unique ring families, relevant cycles, the smallest set of smallest rings and other ring topology descriptions.") (license license:bsd-3))) +(define-public pubchem-align3d + (let ((commit "daefab3dd0c90ca56da9d3d5e375fe4d651e6be3") + (revision "0")) + (package + (name "pubchem-align3d") + (version (git-version "0" revision commit)) + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/ncbi/pubchem-align3d") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1nj1zz5nvn5h3dyj66zi11mmvmzpq3b8y51fld9bkxnsmk17h05m")))) + (build-system gnu-build-system) + (arguments + (list + #:tests? #f ; circular dependency with rdkit + #:phases + #~(modify-phases %standard-phases + (delete 'configure) + (replace 'build + (lambda _ + (invoke "g++" + "-o" "libpubchem-align3d.so" + "-O2" "-g" "-fPIC" "-shared" + "shape_functions1.cpp" "shape_functions2.cpp" + "shape_neighbor.cpp"))) + (replace 'install + (lambda _ + (for-each + (lambda (file) + (install-file + file + (string-append #$output "/include/pubchem-align3d"))) + (find-files "." "\\.hpp")) + (install-file "libpubchem-align3d.so" + (string-append #$output "/lib"))))))) + (home-page "https://github.com/ncbi/pubchem-align3d") + (synopsis "C++ library for aligning small molecules") + (description "This is a generic C++ library that can be used to rapidly +align two small molecules in 3D space, with shape - and optionally color - +Tanimoto scoring.") + (license license:public-domain)))) + (define-public rdkit (package (name "rdkit") |
