Gentoo Archives: gentoo-commits

From: Marek Szuba <marecki@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pywinrm/, dev-python/pywinrm/files/
Date: Fri, 11 Jun 2021 16:33:01
Message-Id: 1623429165.1aa3ae11dc9979b2afeaae6c2b71a3dc760275eb.marecki@gentoo
1 commit: 1aa3ae11dc9979b2afeaae6c2b71a3dc760275eb
2 Author: Marek Szuba <marecki <AT> gentoo <DOT> org>
3 AuthorDate: Fri Jun 11 15:53:53 2021 +0000
4 Commit: Marek Szuba <marecki <AT> gentoo <DOT> org>
5 CommitDate: Fri Jun 11 16:32:45 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1aa3ae11
7
8 dev-python/pywinrm: initial import
9
10 Builds, tests and installs fine for both 3.8 and 3.9 (3.10 support
11 currently omitted due to dependencies), both with and without
12 USE=kerberos - which also enables CredSSP support, for consistency with
13 net-misc/rdesktop.
14
15 Signed-off-by: Marek Szuba <marecki <AT> gentoo.org>
16
17 dev-python/pywinrm/Manifest | 1 +
18 .../files/pywinrm-0.4.2_test-installation.patch | 11 ++++++++
19 dev-python/pywinrm/metadata.xml | 13 +++++++++
20 dev-python/pywinrm/pywinrm-0.4.2.ebuild | 33 ++++++++++++++++++++++
21 4 files changed, 58 insertions(+)
22
23 diff --git a/dev-python/pywinrm/Manifest b/dev-python/pywinrm/Manifest
24 new file mode 100644
25 index 00000000000..d59d8d398cd
26 --- /dev/null
27 +++ b/dev-python/pywinrm/Manifest
28 @@ -0,0 +1 @@
29 +DIST pywinrm-0.4.2.tar.gz 37842 BLAKE2B cf9eb683b77f9a2cc2da9343ebcbbd27404024aea23784721fbea0bce4f8a2359c3647e81bb5fce7f9317bcd8d84cef2c5ec76b17d15153348e66897a6fe1319 SHA512 c5ff02606d6c887ef199cf814d931575728947bbbbff3c2ae7e52bed355408df06ea9351a4ae0b47a947a05ca3476054e501b3abcfca5a36643ef4cd6855a0e4
30
31 diff --git a/dev-python/pywinrm/files/pywinrm-0.4.2_test-installation.patch b/dev-python/pywinrm/files/pywinrm-0.4.2_test-installation.patch
32 new file mode 100644
33 index 00000000000..d7f38f7163d
34 --- /dev/null
35 +++ b/dev-python/pywinrm/files/pywinrm-0.4.2_test-installation.patch
36 @@ -0,0 +1,11 @@
37 +--- a/setup.py
38 ++++ b/setup.py
39 +@@ -21,7 +21,7 @@
40 + author_email='alexey.diyan@×××××.com',
41 + url='http://github.com/diyan/pywinrm/',
42 + license='MIT license',
43 +- packages=find_packages(),
44 ++ packages=find_packages(exclude=('winrm.tests',)),
45 + package_data={'winrm.tests': ['*.ps1']},
46 + install_requires=['xmltodict', 'requests>=2.9.1', 'requests_ntlm>=0.3.0', 'six'],
47 + extras_require={
48
49 diff --git a/dev-python/pywinrm/metadata.xml b/dev-python/pywinrm/metadata.xml
50 new file mode 100644
51 index 00000000000..552844c5055
52 --- /dev/null
53 +++ b/dev-python/pywinrm/metadata.xml
54 @@ -0,0 +1,13 @@
55 +<?xml version="1.0" encoding="UTF-8"?>
56 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
57 +<pkgmetadata>
58 + <maintainer type="person">
59 + <email>marecki@g.o</email>
60 + <name>Marek Szuba</name>
61 + </maintainer>
62 + <stabilize-allarches/>
63 + <upstream>
64 + <remote-id type="github">diyan/pywinrm</remote-id>
65 + <remote-id type="pypi">pywinrm</remote-id>
66 + </upstream>
67 +</pkgmetadata>
68
69 diff --git a/dev-python/pywinrm/pywinrm-0.4.2.ebuild b/dev-python/pywinrm/pywinrm-0.4.2.ebuild
70 new file mode 100644
71 index 00000000000..b319eeabba1
72 --- /dev/null
73 +++ b/dev-python/pywinrm/pywinrm-0.4.2.ebuild
74 @@ -0,0 +1,33 @@
75 +# Copyright 1999-2021 Gentoo Authors
76 +# Distributed under the terms of the GNU General Public License v2
77 +
78 +EAPI=7
79 +
80 +PYTHON_COMPAT=( python3_{8..9} )
81 +
82 +inherit distutils-r1
83 +
84 +DESCRIPTION="Python client for the Windows Remote Management (WinRM) service"
85 +HOMEPAGE="https://github.com/diyan/pywinrm/"
86 +SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
87 +
88 +LICENSE="MIT"
89 +SLOT="0"
90 +KEYWORDS="~amd64"
91 +IUSE="kerberos"
92 +
93 +RDEPEND="dev-python/requests[${PYTHON_USEDEP}]
94 + dev-python/requests-ntlm[${PYTHON_USEDEP}]
95 + dev-python/six[${PYTHON_USEDEP}]
96 + dev-python/xmltodict[${PYTHON_USEDEP}]
97 + kerberos? (
98 + <dev-python/pykerberos-2.0.0[${PYTHON_USEDEP}]
99 + dev-python/requests-credssp[${PYTHON_USEDEP}]
100 + )"
101 +BDEPEND="test? ( dev-python/mock[${PYTHON_USEDEP}] )"
102 +
103 +PATCHES=(
104 + "${FILESDIR}"/${PN}-0.4.2_test-installation.patch
105 +)
106 +
107 +distutils_enable_tests pytest