dev-python/ntplib: add package
authorZac Medico <zmedico@gentoo.org>
Fri, 24 Feb 2017 03:40:49 +0000 (19:40 -0800)
committerZac Medico <zmedico@gentoo.org>
Fri, 24 Feb 2017 03:40:49 +0000 (19:40 -0800)
Package-Manager: Portage-2.3.3, Repoman-2.3.1

dev-python/ntplib/Manifest [new file with mode: 0644]
dev-python/ntplib/metadata.xml [new file with mode: 0644]
dev-python/ntplib/ntplib-0.3.3.ebuild [new file with mode: 0644]

diff --git a/dev-python/ntplib/Manifest b/dev-python/ntplib/Manifest
new file mode 100644 (file)
index 0000000..390ccb7
--- /dev/null
@@ -0,0 +1 @@
+DIST ntplib-0.3.3.tar.gz 6808 SHA256 c4621b64d50be9461d9bd9a71ba0b4af06fbbf818bbd483752d95c1a4e273ede SHA512 4175ebb78228475b32744a59ad4c404f7b88344859c19874606967c7d83a4680bbc78ff42d13b866b8e6ef939d2f1948b0a0b42819c78a8520856bae48ec907f WHIRLPOOL 611928c70cad85d37089d233875820b6cf7c823f0968c5954fb8b0da8f0c008156b3fa22d3cf2e49b99276de9f76de549c99112c22bcf0ed9047a6bc8ca07c36
diff --git a/dev-python/ntplib/metadata.xml b/dev-python/ntplib/metadata.xml
new file mode 100644 (file)
index 0000000..081f4bf
--- /dev/null
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+       <upstream>
+               <remote-id type="pypi">ntplib</remote-id>
+       </upstream>
+       <maintainer type="person">
+               <email>zmedico@gentoo.org</email>
+       </maintainer>
+</pkgmetadata>
diff --git a/dev-python/ntplib/ntplib-0.3.3.ebuild b/dev-python/ntplib/ntplib-0.3.3.ebuild
new file mode 100644 (file)
index 0000000..7e568f6
--- /dev/null
@@ -0,0 +1,23 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+PYTHON_COMPAT=( python{2_7,3_{4,5,6}} )
+
+inherit distutils-r1
+
+DESCRIPTION="Python NTP library"
+HOMEPAGE="https://pypi.python.org/pypi/ntplib/"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+# tests fail with network-sandbox
+RESTRICT="test"
+
+python_test() {
+       "${PYTHON:-python}" ./test_ntplib.py
+}