From owner-dev-commits-ports-all@freebsd.org Tue Jul 27 13:17:49 2021 Return-Path: Delivered-To: dev-commits-ports-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id ED98F66022F; Tue, 27 Jul 2021 13:17:49 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4GYy5T6JRhz4SrX; Tue, 27 Jul 2021 13:17:49 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id B22323166; Tue, 27 Jul 2021 13:17:49 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 16RDHnEx089390; Tue, 27 Jul 2021 13:17:49 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 16RDHn3N089389; Tue, 27 Jul 2021 13:17:49 GMT (envelope-from git) Date: Tue, 27 Jul 2021 13:17:49 GMT Message-Id: <202107271317.16RDHn3N089389@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Yuri Victorovich Subject: git: e74986e25e06 - main - science/py-PubChemPy: New port: Simple Python wrapper around the PubChem PUG REST API MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: yuri X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: e74986e25e061eb40be766759d89e545bab74089 Auto-Submitted: auto-generated X-BeenThere: dev-commits-ports-all@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Commit messages for all branches of the ports repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Jul 2021 13:17:50 -0000 The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=e74986e25e061eb40be766759d89e545bab74089 commit e74986e25e061eb40be766759d89e545bab74089 Author: Yuri Victorovich AuthorDate: 2021-07-27 13:00:14 +0000 Commit: Yuri Victorovich CommitDate: 2021-07-27 13:16:51 +0000 science/py-PubChemPy: New port: Simple Python wrapper around the PubChem PUG REST API --- science/Makefile | 1 + science/py-PubChemPy/Makefile | 18 ++++++++++++++++++ science/py-PubChemPy/distinfo | 3 +++ science/py-PubChemPy/files/example.py | 5 +++++ science/py-PubChemPy/pkg-descr | 6 ++++++ 5 files changed, 33 insertions(+) diff --git a/science/Makefile b/science/Makefile index 7cf6897ba403..0981b0aa016a 100644 --- a/science/Makefile +++ b/science/Makefile @@ -220,6 +220,7 @@ SUBDIR += py-MDAnalysis SUBDIR += py-MDAnalysisTests SUBDIR += py-OpenFermion + SUBDIR += py-PubChemPy SUBDIR += py-PyFR SUBDIR += py-SimpleSpectral SUBDIR += py-abipy diff --git a/science/py-PubChemPy/Makefile b/science/py-PubChemPy/Makefile new file mode 100644 index 000000000000..a187183c085d --- /dev/null +++ b/science/py-PubChemPy/Makefile @@ -0,0 +1,18 @@ +PORTNAME= PubChemPy +DISTVERSION= 1.0.4 +CATEGORIES= science python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Simple Python wrapper around the PubChem PUG REST API + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +USES= python +USE_PYTHON= distutils autoplist + +NO_ARCH= yes + +.include diff --git a/science/py-PubChemPy/distinfo b/science/py-PubChemPy/distinfo new file mode 100644 index 000000000000..5f989603e6df --- /dev/null +++ b/science/py-PubChemPy/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1627390335 +SHA256 (PubChemPy-1.0.4.tar.gz) = 24e9dc2fc90ab153b2764bf805e510b1410700884faf0510a9e7cf0d61d8ed0e +SIZE (PubChemPy-1.0.4.tar.gz) = 29767 diff --git a/science/py-PubChemPy/files/example.py b/science/py-PubChemPy/files/example.py new file mode 100644 index 000000000000..1154ac1f1622 --- /dev/null +++ b/science/py-PubChemPy/files/example.py @@ -0,0 +1,5 @@ +from pubchempy import get_compounds, Compound +comp = Compound.from_cid(1423) +print(comp.isomeric_smiles) +comps = get_compounds('Aspirin', 'name') +print(comps[0].xlogp) diff --git a/science/py-PubChemPy/pkg-descr b/science/py-PubChemPy/pkg-descr new file mode 100644 index 000000000000..75d7c85cf972 --- /dev/null +++ b/science/py-PubChemPy/pkg-descr @@ -0,0 +1,6 @@ +PubChemPy provides a way to interact with PubChem in Python. It allows chemical +searches by name, substructure and similarity, chemical standardization, +conversion between chemical file formats, depiction and retrieval of chemical +properties. + +WWW: https://github.com/mcs07/PubChemPy