unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#38957] [PATCH] gnu: Add python-pywinrm
@ 2020-01-05 20:43 Alexandros Theodotou
  2020-01-06  9:22 ` Brett Gilio
  2020-03-22 23:36 ` [bug#38957] [PATCH 1/4] gnu: Add python-kerberos Christopher Baines
  0 siblings, 2 replies; 9+ messages in thread
From: Alexandros Theodotou @ 2020-01-05 20:43 UTC (permalink / raw)
  To: 38957

[-- Attachment #1: Type: text/plain, Size: 3 bytes --]




[-- Attachment #2: 0001-gnu-Add-python-pywinrm.patch --]
[-- Type: text/x-patch, Size: 7324 bytes --]

From 701f416b45990dfc8de2082bec4621479b2041cb Mon Sep 17 00:00:00 2001
From: Alexandros Theodotou <alex@zrythm.org>
Date: Sun, 5 Jan 2020 20:39:24 +0000
Subject: [PATCH] gnu: Add python-pywinrm.

* gnu/packages/python-xyz.scm (python-pywinrm): New variable.
* gnu/packages/python-web.scm (python-requests_ntlm): New variable.
* gnu/packages/python-crypto.scm (python-ntlm-auth): New variable.
* gnu/packages/python-crypto.scm (python-kerberos): New variable.
---
 gnu/packages/python-crypto.scm | 56 ++++++++++++++++++++++++++++++++++
 gnu/packages/python-web.scm    | 25 +++++++++++++++
 gnu/packages/python-xyz.scm    | 31 +++++++++++++++++++
 3 files changed, 112 insertions(+)

diff --git a/gnu/packages/python-crypto.scm b/gnu/packages/python-crypto.scm
index 63d3be17c2..61e1107248 100644
--- a/gnu/packages/python-crypto.scm
+++ b/gnu/packages/python-crypto.scm
@@ -21,6 +21,7 @@
 ;;; Copyright © 2018 Nam Nguyen <namn@berkeley.edu>
 ;;; Copyright © 2019 Guillaume Le Vaillant <glv@posteo.net>
 ;;; Copyright © 2019 Clément Lassieur <clement@lassieur.org>
+;;; Copyright © 2020 Alexandros Theodotou <alex@zrythm.org>>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -45,6 +46,7 @@
   #:use-module (gnu packages)
   #:use-module (gnu packages check)
   #:use-module (gnu packages crypto)
+  #:use-module (gnu packages kerberos)
   #:use-module (gnu packages libffi)
   #:use-module (gnu packages multiprecision)
   #:use-module (gnu packages protobuf)
@@ -1135,3 +1137,57 @@ storing and retrieving sensitive information in your programs.")
 package provides a tool to securely sign firmware images for booting by
 MCUboot.")
     (license license:expat)))
+
+(define-public python-ntlm-auth
+  (package
+    (name "python-ntlm-auth")
+    (version "1.4.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "ntlm-auth" version))
+       (sha256
+        (base32
+         "16mavidki4ma5ip8srqalr19gz4f5yn3cnmmgps1fmgfr24j63rm"))))
+    (build-system python-build-system)
+    (propagated-inputs
+     `(("python-cryptography" ,python-cryptography)))
+    (home-page "https://github.com/jborean93/ntlm-auth")
+    (synopsis
+      "Calculates NTLM Authentication codes")
+    (description
+      "This library handles the low-level details of NTLM authentication for
+use in authenticating with a service that uses NTLM.  It will create and parse
+the 3 different message types in the order required and produce a base64
+encoded value that can be attached to the HTTP header.
+
+The goal of this library is to offer full NTLM support including signing and
+sealing of messages as well as supporting MIC for message integrity and the
+ability to customise and set limits on the messages sent.  Please see Features
+and Backlog for a list of what is and is not currently supported.")
+    (license license:expat)))
+
+(define-public python-kerberos
+  (package
+    (name "python-kerberos")
+    (version "1.3.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "kerberos" version))
+       (sha256
+        (base32
+         "19663qxmma0i8bfbjc2iwy5hgq0g4pfb75r023v5dps68zfvffgh"))))
+    (build-system python-build-system)
+    (inputs
+      `(("mit-krb5" ,mit-krb5)))
+    (home-page "https://github.com/apple/ccs-pykerberos")
+    (synopsis
+      "Python Kerberos library used by CalendarServer")
+    (description
+      "This Python package is a high-level wrapper for Kerberos (GSSAPI)
+operations.  The goal is to avoid having to build a module that wraps the
+entire Kerberos.framework, and instead offer a limited set of functions that
+do what is needed for client/server Kerberos authentication based on
+<http://www.ietf.org/rfc/rfc4559.txt>.")
+    (license license:asl2.0)))
diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index 179e64e0a1..7ea83808f0 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -31,6 +31,7 @@
 ;;; Copyright © 2019 Brendan Tildesley <mail@brendan.scot>
 ;;; Copyright © 2019 Pierre Langlois <pierre.langlois@gmx.com>
 ;;; Copyright © 2019 Tanguy Le Carrour <tanguy@bioneland.org>
+;;; Copyright © 2020 Alexandros Theodotou <alex@zrythm.org>>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -3421,3 +3422,27 @@ Unicorn project.  The Gunicorn server is broadly compatible with
 various web frameworks, simply implemented, light on server resources,
 and fairly speedy.")
   (license license:expat)))
+
+(define-public python-requests_ntlm
+  (package
+    (name "python-requests_ntlm")
+    (version "1.1.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "requests_ntlm" version))
+       (sha256
+        (base32
+         "0wgbqzaq9w7bas16b7brdb75f91bh3275fb459093bk1ihpck2ci"))))
+    (build-system python-build-system)
+    (propagated-inputs
+     `(("python-cryptography" ,python-cryptography)
+       ("python-ntlm-auth" ,python-ntlm-auth)
+       ("python-requests" ,python-requests)))
+    (home-page "https://github.com/requests/requests-ntlm")
+    (synopsis
+      "NTLM authentication support for Requests")
+    (description
+      "This package allows for HTTP NTLM authentication using the requests
+library.")
+    (license license:isc)))
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index db43bd72e4..6e301a59ad 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -68,6 +68,7 @@
 ;;; Copyright © 2019 Wiktor Żelazny <wzelazny@vurv.cz>
 ;;; Copyright © 2019 Tanguy Le Carrour <tanguy@bioneland.org>
 ;;; Copyright © 2019 Mădălin Ionel Patrașcu <madalinionel.patrascu@mdc-berlin.de>
+;;; Copyright © 2020 Alexandros Theodotou <alex@zrythm.org>>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -107,6 +108,7 @@
   #:use-module (gnu packages gnome)
   #:use-module (gnu packages graphviz)
   #:use-module (gnu packages graphics)
+  #:use-module (gnu packages gsasl)
   #:use-module (gnu packages gstreamer)
   #:use-module (gnu packages gtk)
   #:use-module (gnu packages icu4c)
@@ -17112,3 +17114,32 @@ scripts to load entry points more quickly.")
 functional combinators.  Parser combinators are just higher-order functions
 that take parsers as their arguments and return them as result values.")
     (license license:expat)))
+
+(define-public python-pywinrm
+  (package
+    (name "python-pywinrm")
+    (version "0.4.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "pywinrm" version))
+       (sha256
+        (base32
+         "10gabhhg3rgacd5ahmi2r128z99fzbrbx6mz1nnq0dxmhmn5rpjf"))))
+    (build-system python-build-system)
+    (propagated-inputs
+     `(("python-six" ,python-six)
+       ("python-requests_ntlm" ,python-requests_ntlm)
+       ("python-xmltodict" ,python-xmltodict)
+       ("python-kerberos" ,python-kerberos)))
+    (native-inputs
+      `(("python-mock" ,python-mock)
+       ("python-pytest" ,python-pytest)))
+    (home-page "https://github.com/diyan/pywinrm/")
+    (synopsis
+      "Python library for Windows Remote Management (WinRM)")
+    (description
+      "pywinrm is a Python client for the Windows Remote Management (WinRM)
+service.  It allows you to invoke commands on target Windows machines from
+any machine that can run Python.")
+    (license license:expat)))
-- 
2.24.1


^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [bug#38957] [PATCH] gnu: Add python-pywinrm
  2020-01-05 20:43 [bug#38957] [PATCH] gnu: Add python-pywinrm Alexandros Theodotou
@ 2020-01-06  9:22 ` Brett Gilio
  2020-01-08 15:02   ` Alexandros Theodotou
  2020-03-22 23:36 ` [bug#38957] [PATCH 1/4] gnu: Add python-kerberos Christopher Baines
  1 sibling, 1 reply; 9+ messages in thread
From: Brett Gilio @ 2020-01-06  9:22 UTC (permalink / raw)
  To: Alexandros Theodotou; +Cc: 38957

Alexandros Theodotou <alex@zrythm.org> writes:

> From 701f416b45990dfc8de2082bec4621479b2041cb Mon Sep 17 00:00:00 2001
> From: Alexandros Theodotou <alex@zrythm.org>
> Date: Sun, 5 Jan 2020 20:39:24 +0000
> Subject: [PATCH] gnu: Add python-pywinrm.
>
> * gnu/packages/python-xyz.scm (python-pywinrm): New variable.
> * gnu/packages/python-web.scm (python-requests_ntlm): New variable.
> * gnu/packages/python-crypto.scm (python-ntlm-auth): New variable.
> * gnu/packages/python-crypto.scm (python-kerberos): New variable.
> ---
>  gnu/packages/python-crypto.scm | 56 ++++++++++++++++++++++++++++++++++
>  gnu/packages/python-web.scm    | 25 +++++++++++++++
>  gnu/packages/python-xyz.scm    | 31 +++++++++++++++++++
>  3 files changed, 112 insertions(+)
>
> diff --git a/gnu/packages/python-crypto.scm b/gnu/packages/python-crypto.scm
> index 63d3be17c2..61e1107248 100644
> --- a/gnu/packages/python-crypto.scm
> +++ b/gnu/packages/python-crypto.scm
> @@ -21,6 +21,7 @@
>  ;;; Copyright © 2018 Nam Nguyen <namn@berkeley.edu>
>  ;;; Copyright © 2019 Guillaume Le Vaillant <glv@posteo.net>
>  ;;; Copyright © 2019 Clément Lassieur <clement@lassieur.org>
> +;;; Copyright © 2020 Alexandros Theodotou <alex@zrythm.org>>
>  ;;;
>  ;;; This file is part of GNU Guix.
>  ;;;
> @@ -45,6 +46,7 @@
>    #:use-module (gnu packages)
>    #:use-module (gnu packages check)
>    #:use-module (gnu packages crypto)
> +  #:use-module (gnu packages kerberos)
>    #:use-module (gnu packages libffi)
>    #:use-module (gnu packages multiprecision)
>    #:use-module (gnu packages protobuf)
> @@ -1135,3 +1137,57 @@ storing and retrieving sensitive information in your programs.")
>  package provides a tool to securely sign firmware images for booting by
>  MCUboot.")
>      (license license:expat)))
> +
> +(define-public python-ntlm-auth
> +  (package
> +    (name "python-ntlm-auth")
> +    (version "1.4.0")
> +    (source
> +     (origin
> +       (method url-fetch)
> +       (uri (pypi-uri "ntlm-auth" version))
> +       (sha256
> +        (base32
> +         "16mavidki4ma5ip8srqalr19gz4f5yn3cnmmgps1fmgfr24j63rm"))))
> +    (build-system python-build-system)
> +    (propagated-inputs
> +     `(("python-cryptography" ,python-cryptography)))
> +    (home-page "https://github.com/jborean93/ntlm-auth")
> +    (synopsis
> +      "Calculates NTLM Authentication codes")
> +    (description
> +      "This library handles the low-level details of NTLM authentication for
> +use in authenticating with a service that uses NTLM.  It will create and parse
> +the 3 different message types in the order required and produce a base64
> +encoded value that can be attached to the HTTP header.
> +
> +The goal of this library is to offer full NTLM support including signing and
> +sealing of messages as well as supporting MIC for message integrity and the
> +ability to customise and set limits on the messages sent.  Please see Features
> +and Backlog for a list of what is and is not currently supported.")
> +    (license license:expat)))
> +
> +(define-public python-kerberos
> +  (package
> +    (name "python-kerberos")
> +    (version "1.3.0")
> +    (source
> +     (origin
> +       (method url-fetch)
> +       (uri (pypi-uri "kerberos" version))
> +       (sha256
> +        (base32
> +         "19663qxmma0i8bfbjc2iwy5hgq0g4pfb75r023v5dps68zfvffgh"))))
> +    (build-system python-build-system)
> +    (inputs
> +      `(("mit-krb5" ,mit-krb5)))
> +    (home-page "https://github.com/apple/ccs-pykerberos")
> +    (synopsis
> +      "Python Kerberos library used by CalendarServer")
> +    (description
> +      "This Python package is a high-level wrapper for Kerberos (GSSAPI)
> +operations.  The goal is to avoid having to build a module that wraps the
> +entire Kerberos.framework, and instead offer a limited set of functions that
> +do what is needed for client/server Kerberos authentication based on
> +<http://www.ietf.org/rfc/rfc4559.txt>.")
> +    (license license:asl2.0)))
> diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
> index 179e64e0a1..7ea83808f0 100644
> --- a/gnu/packages/python-web.scm
> +++ b/gnu/packages/python-web.scm
> @@ -31,6 +31,7 @@
>  ;;; Copyright © 2019 Brendan Tildesley <mail@brendan.scot>
>  ;;; Copyright © 2019 Pierre Langlois <pierre.langlois@gmx.com>
>  ;;; Copyright © 2019 Tanguy Le Carrour <tanguy@bioneland.org>
> +;;; Copyright © 2020 Alexandros Theodotou <alex@zrythm.org>>
>  ;;;
>  ;;; This file is part of GNU Guix.
>  ;;;
> @@ -3421,3 +3422,27 @@ Unicorn project.  The Gunicorn server is broadly compatible with
>  various web frameworks, simply implemented, light on server resources,
>  and fairly speedy.")
>    (license license:expat)))
> +
> +(define-public python-requests_ntlm
> +  (package
> +    (name "python-requests_ntlm")
> +    (version "1.1.0")
> +    (source
> +     (origin
> +       (method url-fetch)
> +       (uri (pypi-uri "requests_ntlm" version))
> +       (sha256
> +        (base32
> +         "0wgbqzaq9w7bas16b7brdb75f91bh3275fb459093bk1ihpck2ci"))))
> +    (build-system python-build-system)
> +    (propagated-inputs
> +     `(("python-cryptography" ,python-cryptography)
> +       ("python-ntlm-auth" ,python-ntlm-auth)
> +       ("python-requests" ,python-requests)))
> +    (home-page "https://github.com/requests/requests-ntlm")
> +    (synopsis
> +      "NTLM authentication support for Requests")
> +    (description
> +      "This package allows for HTTP NTLM authentication using the requests
> +library.")
> +    (license license:isc)))
> diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
> index db43bd72e4..6e301a59ad 100644
> --- a/gnu/packages/python-xyz.scm
> +++ b/gnu/packages/python-xyz.scm
> @@ -68,6 +68,7 @@
>  ;;; Copyright © 2019 Wiktor Żelazny <wzelazny@vurv.cz>
>  ;;; Copyright © 2019 Tanguy Le Carrour <tanguy@bioneland.org>
>  ;;; Copyright © 2019 Mădălin Ionel Patrașcu <madalinionel.patrascu@mdc-berlin.de>
> +;;; Copyright © 2020 Alexandros Theodotou <alex@zrythm.org>>
>  ;;;
>  ;;; This file is part of GNU Guix.
>  ;;;
> @@ -107,6 +108,7 @@
>    #:use-module (gnu packages gnome)
>    #:use-module (gnu packages graphviz)
>    #:use-module (gnu packages graphics)
> +  #:use-module (gnu packages gsasl)
>    #:use-module (gnu packages gstreamer)
>    #:use-module (gnu packages gtk)
>    #:use-module (gnu packages icu4c)
> @@ -17112,3 +17114,32 @@ scripts to load entry points more quickly.")
>  functional combinators.  Parser combinators are just higher-order functions
>  that take parsers as their arguments and return them as result values.")
>      (license license:expat)))
> +
> +(define-public python-pywinrm
> +  (package
> +    (name "python-pywinrm")
> +    (version "0.4.1")
> +    (source
> +     (origin
> +       (method url-fetch)
> +       (uri (pypi-uri "pywinrm" version))
> +       (sha256
> +        (base32
> +         "10gabhhg3rgacd5ahmi2r128z99fzbrbx6mz1nnq0dxmhmn5rpjf"))))
> +    (build-system python-build-system)
> +    (propagated-inputs
> +     `(("python-six" ,python-six)
> +       ("python-requests_ntlm" ,python-requests_ntlm)
> +       ("python-xmltodict" ,python-xmltodict)
> +       ("python-kerberos" ,python-kerberos)))
> +    (native-inputs
> +      `(("python-mock" ,python-mock)
> +       ("python-pytest" ,python-pytest)))
> +    (home-page "https://github.com/diyan/pywinrm/")
> +    (synopsis
> +      "Python library for Windows Remote Management (WinRM)")
> +    (description
> +      "pywinrm is a Python client for the Windows Remote Management (WinRM)
> +service.  It allows you to invoke commands on target Windows machines from
> +any machine that can run Python.")
> +    (license license:expat)))

Hi Alexandros,

Thank you for your contribution! Could you please split these package
definitions into a patch series, rather than as a single patch? This is
preferable for how our Git workflow is utilized so that we can keep
track of packages individually in the commit log if we ever need to go
back and look at our records.

If you need help sending a patch series please do not hesistate to ask :).

-- 
Brett M. Gilio
GNU Guix, Contributor | GNU Project, Webmaster
[DFC0 C7F7 9EE6 0CA7 AE55 5E19 6722 43C4 A03F 0EEE]
<brettg@gnu.org> <brettg@posteo.net>

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [bug#38957] [PATCH] gnu: Add python-pywinrm
  2020-01-06  9:22 ` Brett Gilio
@ 2020-01-08 15:02   ` Alexandros Theodotou
  2020-03-22 23:39     ` Christopher Baines
  0 siblings, 1 reply; 9+ messages in thread
From: Alexandros Theodotou @ 2020-01-08 15:02 UTC (permalink / raw)
  To: Brett Gilio; +Cc: 38957

[-- Attachment #1: Type: text/plain, Size: 436 bytes --]

Hi Brett,

Thanks for taking a look at this.

On Mon, 2020-01-06 at 03:22 -0600, Brett Gilio wrote:
> Could you please split these package
> definitions into a patch series, rather than as a single patch? This
> is
> preferable for how our Git workflow is utilized so that we can keep
> track of packages individually in the commit log if we ever need to
> go
> back and look at our records.

Attaching the split patches.

Thanks,
Alex

[-- Attachment #2: 0001-gnu-Add-python-kerberos.patch --]
[-- Type: text/x-patch, Size: 2274 bytes --]

From 0a619578c282dd4cf1ccbe14773f3f10287621f5 Mon Sep 17 00:00:00 2001
From: Alexandros Theodotou <alex@zrythm.org>
Date: Wed, 8 Jan 2020 14:55:28 +0000
Subject: [PATCH 1/4] gnu: Add python-kerberos.

* gnu/packages/python-crypto.scm (python-kerberos): New variable.
---
 gnu/packages/python-crypto.scm | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)

diff --git a/gnu/packages/python-crypto.scm b/gnu/packages/python-crypto.scm
index 63d3be17c2..a60ee6289d 100644
--- a/gnu/packages/python-crypto.scm
+++ b/gnu/packages/python-crypto.scm
@@ -21,6 +21,7 @@
 ;;; Copyright © 2018 Nam Nguyen <namn@berkeley.edu>
 ;;; Copyright © 2019 Guillaume Le Vaillant <glv@posteo.net>
 ;;; Copyright © 2019 Clément Lassieur <clement@lassieur.org>
+;;; Copyright © 2020 Alexandros Theodotou <alex@zrythm.org>>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -45,6 +46,7 @@
   #:use-module (gnu packages)
   #:use-module (gnu packages check)
   #:use-module (gnu packages crypto)
+  #:use-module (gnu packages kerberos)
   #:use-module (gnu packages libffi)
   #:use-module (gnu packages multiprecision)
   #:use-module (gnu packages protobuf)
@@ -1135,3 +1137,28 @@ storing and retrieving sensitive information in your programs.")
 package provides a tool to securely sign firmware images for booting by
 MCUboot.")
     (license license:expat)))
+
+(define-public python-kerberos
+  (package
+    (name "python-kerberos")
+    (version "1.3.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "kerberos" version))
+       (sha256
+        (base32
+         "19663qxmma0i8bfbjc2iwy5hgq0g4pfb75r023v5dps68zfvffgh"))))
+    (build-system python-build-system)
+    (inputs
+      `(("mit-krb5" ,mit-krb5)))
+    (home-page "https://github.com/apple/ccs-pykerberos")
+    (synopsis
+      "Python Kerberos library used by CalendarServer")
+    (description
+      "This Python package is a high-level wrapper for Kerberos (GSSAPI)
+operations.  The goal is to avoid having to build a module that wraps the
+entire Kerberos.framework, and instead offer a limited set of functions that
+do what is needed for client/server Kerberos authentication based on
+<http://www.ietf.org/rfc/rfc4559.txt>.")
+    (license license:asl2.0)))
--
2.24.1


[-- Attachment #3: 0004-gnu-Add-python-pywinrm.patch --]
[-- Type: text/x-patch, Size: 2443 bytes --]

From 8942151b1178fd25625a3f9a9213eba1c9c4646d Mon Sep 17 00:00:00 2001
From: Alexandros Theodotou <alex@zrythm.org>
Date: Wed, 8 Jan 2020 14:59:27 +0000
Subject: [PATCH 4/4] gnu: Add python-pywinrm.

* gnu/packages/python-xyz.scm (python-pywinrm): New variable.
---
 gnu/packages/python-xyz.scm | 31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index db43bd72e4..6e301a59ad 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -68,6 +68,7 @@
 ;;; Copyright © 2019 Wiktor Żelazny <wzelazny@vurv.cz>
 ;;; Copyright © 2019 Tanguy Le Carrour <tanguy@bioneland.org>
 ;;; Copyright © 2019 Mădălin Ionel Patrașcu <madalinionel.patrascu@mdc-berlin.de>
+;;; Copyright © 2020 Alexandros Theodotou <alex@zrythm.org>>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -107,6 +108,7 @@
   #:use-module (gnu packages gnome)
   #:use-module (gnu packages graphviz)
   #:use-module (gnu packages graphics)
+  #:use-module (gnu packages gsasl)
   #:use-module (gnu packages gstreamer)
   #:use-module (gnu packages gtk)
   #:use-module (gnu packages icu4c)
@@ -17112,3 +17114,32 @@ scripts to load entry points more quickly.")
 functional combinators.  Parser combinators are just higher-order functions
 that take parsers as their arguments and return them as result values.")
     (license license:expat)))
+
+(define-public python-pywinrm
+  (package
+    (name "python-pywinrm")
+    (version "0.4.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "pywinrm" version))
+       (sha256
+        (base32
+         "10gabhhg3rgacd5ahmi2r128z99fzbrbx6mz1nnq0dxmhmn5rpjf"))))
+    (build-system python-build-system)
+    (propagated-inputs
+     `(("python-six" ,python-six)
+       ("python-requests_ntlm" ,python-requests_ntlm)
+       ("python-xmltodict" ,python-xmltodict)
+       ("python-kerberos" ,python-kerberos)))
+    (native-inputs
+      `(("python-mock" ,python-mock)
+       ("python-pytest" ,python-pytest)))
+    (home-page "https://github.com/diyan/pywinrm/")
+    (synopsis
+      "Python library for Windows Remote Management (WinRM)")
+    (description
+      "pywinrm is a Python client for the Windows Remote Management (WinRM)
+service.  It allows you to invoke commands on target Windows machines from
+any machine that can run Python.")
+    (license license:expat)))
-- 
2.24.1


[-- Attachment #4: 0003-gnu-Add-python-requests_ntlm.patch --]
[-- Type: text/x-patch, Size: 1875 bytes --]

From dda41af4a8292633a4d38f01c35c8a007c001c59 Mon Sep 17 00:00:00 2001
From: Alexandros Theodotou <alex@zrythm.org>
Date: Wed, 8 Jan 2020 14:58:06 +0000
Subject: [PATCH 3/4] gnu: Add python-requests_ntlm.

* gnu/packages/python-web.scm (python-requests_ntlm): New variable.
---
 gnu/packages/python-web.scm | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)

diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index 179e64e0a1..7ea83808f0 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -31,6 +31,7 @@
 ;;; Copyright © 2019 Brendan Tildesley <mail@brendan.scot>
 ;;; Copyright © 2019 Pierre Langlois <pierre.langlois@gmx.com>
 ;;; Copyright © 2019 Tanguy Le Carrour <tanguy@bioneland.org>
+;;; Copyright © 2020 Alexandros Theodotou <alex@zrythm.org>>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -3421,3 +3422,27 @@ Unicorn project.  The Gunicorn server is broadly compatible with
 various web frameworks, simply implemented, light on server resources,
 and fairly speedy.")
   (license license:expat)))
+
+(define-public python-requests_ntlm
+  (package
+    (name "python-requests_ntlm")
+    (version "1.1.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "requests_ntlm" version))
+       (sha256
+        (base32
+         "0wgbqzaq9w7bas16b7brdb75f91bh3275fb459093bk1ihpck2ci"))))
+    (build-system python-build-system)
+    (propagated-inputs
+     `(("python-cryptography" ,python-cryptography)
+       ("python-ntlm-auth" ,python-ntlm-auth)
+       ("python-requests" ,python-requests)))
+    (home-page "https://github.com/requests/requests-ntlm")
+    (synopsis
+      "NTLM authentication support for Requests")
+    (description
+      "This package allows for HTTP NTLM authentication using the requests
+library.")
+    (license license:isc)))
-- 
2.24.1


[-- Attachment #5: 0002-gnu-Add-python-ntlm-auth.patch --]
[-- Type: text/x-patch, Size: 1972 bytes --]

From d89f6bdb5559c60d568749ab864e8503bf2e91f4 Mon Sep 17 00:00:00 2001
From: Alexandros Theodotou <alex@zrythm.org>
Date: Wed, 8 Jan 2020 14:56:52 +0000
Subject: [PATCH 2/4] gnu: Add python-ntlm-auth.

* gnu/packages/python-crypto.scm (python-ntlm-auth): New variable.
---
 gnu/packages/python-crypto.scm | 29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)

diff --git a/gnu/packages/python-crypto.scm b/gnu/packages/python-crypto.scm
index a60ee6289d..61e1107248 100644
--- a/gnu/packages/python-crypto.scm
+++ b/gnu/packages/python-crypto.scm
@@ -1138,6 +1138,35 @@ package provides a tool to securely sign firmware images for booting by
 MCUboot.")
     (license license:expat)))
 
+(define-public python-ntlm-auth
+  (package
+    (name "python-ntlm-auth")
+    (version "1.4.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "ntlm-auth" version))
+       (sha256
+        (base32
+         "16mavidki4ma5ip8srqalr19gz4f5yn3cnmmgps1fmgfr24j63rm"))))
+    (build-system python-build-system)
+    (propagated-inputs
+     `(("python-cryptography" ,python-cryptography)))
+    (home-page "https://github.com/jborean93/ntlm-auth")
+    (synopsis
+      "Calculates NTLM Authentication codes")
+    (description
+      "This library handles the low-level details of NTLM authentication for
+use in authenticating with a service that uses NTLM.  It will create and parse
+the 3 different message types in the order required and produce a base64
+encoded value that can be attached to the HTTP header.
+
+The goal of this library is to offer full NTLM support including signing and
+sealing of messages as well as supporting MIC for message integrity and the
+ability to customise and set limits on the messages sent.  Please see Features
+and Backlog for a list of what is and is not currently supported.")
+    (license license:expat)))
+
 (define-public python-kerberos
   (package
     (name "python-kerberos")
-- 
2.24.1


^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [bug#38957] [PATCH 1/4] gnu: Add python-kerberos.
  2020-01-05 20:43 [bug#38957] [PATCH] gnu: Add python-pywinrm Alexandros Theodotou
  2020-01-06  9:22 ` Brett Gilio
@ 2020-03-22 23:36 ` Christopher Baines
  2020-03-22 23:36   ` [bug#38957] [PATCH 2/4] gnu: Add python-ntlm-auth Christopher Baines
                     ` (2 more replies)
  1 sibling, 3 replies; 9+ messages in thread
From: Christopher Baines @ 2020-03-22 23:36 UTC (permalink / raw)
  To: 38957

From: Alexandros Theodotou <alex@zrythm.org>

* gnu/packages/python-crypto.scm (python-kerberos): New variable.
---
 gnu/packages/python-crypto.scm | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)

diff --git a/gnu/packages/python-crypto.scm b/gnu/packages/python-crypto.scm
index 0601799c2b..e82599bb5f 100644
--- a/gnu/packages/python-crypto.scm
+++ b/gnu/packages/python-crypto.scm
@@ -21,6 +21,7 @@
 ;;; Copyright © 2018 Nam Nguyen <namn@berkeley.edu>
 ;;; Copyright © 2019 Guillaume Le Vaillant <glv@posteo.net>
 ;;; Copyright © 2019 Clément Lassieur <clement@lassieur.org>
+;;; Copyright © 2020 Alexandros Theodotou <alex@zrythm.org>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -45,6 +46,7 @@
   #:use-module (gnu packages)
   #:use-module (gnu packages check)
   #:use-module (gnu packages crypto)
+  #:use-module (gnu packages kerberos)
   #:use-module (gnu packages libffi)
   #:use-module (gnu packages multiprecision)
   #:use-module (gnu packages password-utils)
@@ -309,6 +311,31 @@ etc.).  The package is structured to make adding new modules easy.")
             "python"
             (package-inputs pycrypto)))))))
 
+(define-public python-kerberos
+  (package
+    (name "python-kerberos")
+    (version "1.3.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "kerberos" version))
+       (sha256
+        (base32
+         "19663qxmma0i8bfbjc2iwy5hgq0g4pfb75r023v5dps68zfvffgh"))))
+    (build-system python-build-system)
+    (inputs
+      `(("mit-krb5" ,mit-krb5)))
+    (home-page "https://github.com/apple/ccs-pykerberos")
+    (synopsis
+      "Python Kerberos library used by CalendarServer")
+    (description
+      "This Python package is a high-level wrapper for Kerberos (GSSAPI)
+operations.  The goal is to avoid having to build a module that wraps the
+entire Kerberos.framework, and instead offer a limited set of functions that
+do what is needed for client/server Kerberos authentication based on
+<http://www.ietf.org/rfc/rfc4559.txt>.")
+    (license license:asl2.0)))
+
 (define-public python-keyring
   (package
     (name "python-keyring")
-- 
2.25.1

^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [bug#38957] [PATCH 2/4] gnu: Add python-ntlm-auth.
  2020-03-22 23:36 ` [bug#38957] [PATCH 1/4] gnu: Add python-kerberos Christopher Baines
@ 2020-03-22 23:36   ` Christopher Baines
  2020-03-22 23:36   ` [bug#38957] [PATCH 3/4] gnu: Add python-requests_ntlm Christopher Baines
  2020-03-22 23:36   ` [bug#38957] [PATCH 4/4] gnu: Add python-pywinrm Christopher Baines
  2 siblings, 0 replies; 9+ messages in thread
From: Christopher Baines @ 2020-03-22 23:36 UTC (permalink / raw)
  To: 38957

From: Alexandros Theodotou <alex@zrythm.org>

* gnu/packages/python-crypto.scm (python-ntlm-auth): New variable.
---
 gnu/packages/python-crypto.scm | 29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)

diff --git a/gnu/packages/python-crypto.scm b/gnu/packages/python-crypto.scm
index e82599bb5f..0c4cfff959 100644
--- a/gnu/packages/python-crypto.scm
+++ b/gnu/packages/python-crypto.scm
@@ -1281,6 +1281,35 @@ package provides a tool to securely sign firmware images for booting by
 MCUboot.")
     (license license:expat)))
 
+(define-public python-ntlm-auth
+  (package
+    (name "python-ntlm-auth")
+    (version "1.4.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "ntlm-auth" version))
+       (sha256
+        (base32
+         "16mavidki4ma5ip8srqalr19gz4f5yn3cnmmgps1fmgfr24j63rm"))))
+    (build-system python-build-system)
+    (propagated-inputs
+     `(("python-cryptography" ,python-cryptography)))
+    (home-page "https://github.com/jborean93/ntlm-auth")
+    (synopsis
+      "Calculates NTLM Authentication codes")
+    (description
+      "This library handles the low-level details of NTLM authentication for
+use in authenticating with a service that uses NTLM.  It will create and parse
+the 3 different message types in the order required and produce a base64
+encoded value that can be attached to the HTTP header.
+
+The goal of this library is to offer full NTLM support including signing and
+sealing of messages as well as supporting MIC for message integrity and the
+ability to customise and set limits on the messages sent.  Please see Features
+and Backlog for a list of what is and is not currently supported.")
+    (license license:expat)))
+
 (define-public python-secretstorage
   (package
     (name "python-secretstorage")
-- 
2.25.1

^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [bug#38957] [PATCH 3/4] gnu: Add python-requests_ntlm.
  2020-03-22 23:36 ` [bug#38957] [PATCH 1/4] gnu: Add python-kerberos Christopher Baines
  2020-03-22 23:36   ` [bug#38957] [PATCH 2/4] gnu: Add python-ntlm-auth Christopher Baines
@ 2020-03-22 23:36   ` Christopher Baines
  2020-03-22 23:36   ` [bug#38957] [PATCH 4/4] gnu: Add python-pywinrm Christopher Baines
  2 siblings, 0 replies; 9+ messages in thread
From: Christopher Baines @ 2020-03-22 23:36 UTC (permalink / raw)
  To: 38957

From: Alexandros Theodotou <alex@zrythm.org>

* gnu/packages/python-web.scm (python-requests_ntlm): New variable.
---
 gnu/packages/python-web.scm | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)

diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index b02ffd5f58..6f6b5fd4d3 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -33,6 +33,7 @@
 ;;; Copyright © 2019 Tanguy Le Carrour <tanguy@bioneland.org>
 ;;; Copyright © 2020 Jakub Kądziołka <kuba@kadziolka.net>
 ;;; Copyright © 2020 Evan Straw <evan.straw99@gmail.com>
+;;; Copyright © 2020 Alexandros Theodotou <alex@zrythm.org>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -1422,6 +1423,30 @@ than Python’s urllib2 library.")
 (define-public python2-requests
   (package-with-python2 python-requests))
 
+(define-public python-requests_ntlm
+  (package
+    (name "python-requests_ntlm")
+    (version "1.1.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "requests_ntlm" version))
+       (sha256
+        (base32
+         "0wgbqzaq9w7bas16b7brdb75f91bh3275fb459093bk1ihpck2ci"))))
+    (build-system python-build-system)
+    (propagated-inputs
+     `(("python-cryptography" ,python-cryptography)
+       ("python-ntlm-auth" ,python-ntlm-auth)
+       ("python-requests" ,python-requests)))
+    (home-page "https://github.com/requests/requests-ntlm")
+    (synopsis
+      "NTLM authentication support for Requests")
+    (description
+      "This package allows for HTTP NTLM authentication using the requests
+library.")
+    (license license:isc)))
+
 (define-public python-requests-mock
   (package
     (name "python-requests-mock")
-- 
2.25.1

^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [bug#38957] [PATCH 4/4] gnu: Add python-pywinrm.
  2020-03-22 23:36 ` [bug#38957] [PATCH 1/4] gnu: Add python-kerberos Christopher Baines
  2020-03-22 23:36   ` [bug#38957] [PATCH 2/4] gnu: Add python-ntlm-auth Christopher Baines
  2020-03-22 23:36   ` [bug#38957] [PATCH 3/4] gnu: Add python-requests_ntlm Christopher Baines
@ 2020-03-22 23:36   ` Christopher Baines
  2 siblings, 0 replies; 9+ messages in thread
From: Christopher Baines @ 2020-03-22 23:36 UTC (permalink / raw)
  To: 38957

From: Alexandros Theodotou <alex@zrythm.org>

* gnu/packages/python-xyz.scm (python-pywinrm): New variable.
---
 gnu/packages/python-xyz.scm | 31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 65bc6df4aa..5ef459a589 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -70,6 +70,7 @@
 ;;; Copyright © 2020 Jakub Kądziołka <kuba@kadziolka.net>
 ;;; Copyright © 2020 sirgazil <sirgazil@zoho.com>
 ;;; Copyright © 2020 Sebastian Schott <sschott@mailbox.org>
+;;; Copyright © 2020 Alexandros Theodotou <alex@zrythm.org>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -110,6 +111,7 @@
   #:use-module (gnu packages gnome)
   #:use-module (gnu packages graphviz)
   #:use-module (gnu packages graphics)
+  #:use-module (gnu packages gsasl)
   #:use-module (gnu packages gstreamer)
   #:use-module (gnu packages gtk)
   #:use-module (gnu packages icu4c)
@@ -5045,6 +5047,35 @@ localized only in frequency instead of in time and frequency.")
 (define-public python2-pywavelets
   (package-with-python2 python-pywavelets))
 
+(define-public python-pywinrm
+  (package
+    (name "python-pywinrm")
+    (version "0.4.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "pywinrm" version))
+       (sha256
+        (base32
+         "10gabhhg3rgacd5ahmi2r128z99fzbrbx6mz1nnq0dxmhmn5rpjf"))))
+    (build-system python-build-system)
+    (propagated-inputs
+     `(("python-six" ,python-six)
+       ("python-requests_ntlm" ,python-requests_ntlm)
+       ("python-xmltodict" ,python-xmltodict)
+       ("python-kerberos" ,python-kerberos)))
+    (native-inputs
+     `(("python-mock" ,python-mock)
+       ("python-pytest" ,python-pytest)))
+    (home-page "https://github.com/diyan/pywinrm/")
+    (synopsis
+     "Python library for Windows Remote Management (WinRM)")
+    (description
+     "pywinrm is a Python client for the Windows Remote Management (WinRM)
+service.  It allows you to invoke commands on target Windows machines from
+any machine that can run Python.")
+    (license license:expat)))
+
 (define-public python-xcffib
   (package
     (name "python-xcffib")
-- 
2.25.1

^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [bug#38957] [PATCH] gnu: Add python-pywinrm
  2020-01-08 15:02   ` Alexandros Theodotou
@ 2020-03-22 23:39     ` Christopher Baines
  2020-03-26 19:15       ` bug#38957: " Christopher Baines
  0 siblings, 1 reply; 9+ messages in thread
From: Christopher Baines @ 2020-03-22 23:39 UTC (permalink / raw)
  To: Alexandros Theodotou; +Cc: 38957, Brett Gilio

[-- Attachment #1: Type: text/plain, Size: 842 bytes --]


Alexandros Theodotou <alex@zrythm.org> writes:

> Hi Brett,
>
> Thanks for taking a look at this.
>
> On Mon, 2020-01-06 at 03:22 -0600, Brett Gilio wrote:
>> Could you please split these package
>> definitions into a patch series, rather than as a single patch? This
>> is
>> preferable for how our Git workflow is utilized so that we can keep
>> track of packages individually in the commit log if we ever need to
>> go
>> back and look at our records.
>
> Attaching the split patches.

Hi Alexandros,

Sorry it's been so long to look more at these patches. I've had a look
today and they look good to me. I had to fix some merge conflicts, and I
changed the indentation in a couple of places, so I've sent the changed
patches to the bug now.

I'll let others take a look, and merge in a few days if it's all looking
good.

Thanks,

Chris

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 962 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* bug#38957: [PATCH] gnu: Add python-pywinrm
  2020-03-22 23:39     ` Christopher Baines
@ 2020-03-26 19:15       ` Christopher Baines
  0 siblings, 0 replies; 9+ messages in thread
From: Christopher Baines @ 2020-03-26 19:15 UTC (permalink / raw)
  To: Alexandros Theodotou; +Cc: 38957-done

[-- Attachment #1: Type: text/plain, Size: 1024 bytes --]


Christopher Baines <mail@cbaines.net> writes:

> Alexandros Theodotou <alex@zrythm.org> writes:
>
>> Hi Brett,
>>
>> Thanks for taking a look at this.
>>
>> On Mon, 2020-01-06 at 03:22 -0600, Brett Gilio wrote:
>>> Could you please split these package
>>> definitions into a patch series, rather than as a single patch? This
>>> is
>>> preferable for how our Git workflow is utilized so that we can keep
>>> track of packages individually in the commit log if we ever need to
>>> go
>>> back and look at our records.
>>
>> Attaching the split patches.
>
> Hi Alexandros,
>
> Sorry it's been so long to look more at these patches. I've had a look
> today and they look good to me. I had to fix some merge conflicts, and I
> changed the indentation in a couple of places, so I've sent the changed
> patches to the bug now.
>
> I'll let others take a look, and merge in a few days if it's all looking
> good.

I've gone ahead and pushed these patches to master as
9b0c95cc6877229da0816e7b962090966a8577de.

Thanks Alexandros!

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 962 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2020-03-26 19:16 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-05 20:43 [bug#38957] [PATCH] gnu: Add python-pywinrm Alexandros Theodotou
2020-01-06  9:22 ` Brett Gilio
2020-01-08 15:02   ` Alexandros Theodotou
2020-03-22 23:39     ` Christopher Baines
2020-03-26 19:15       ` bug#38957: " Christopher Baines
2020-03-22 23:36 ` [bug#38957] [PATCH 1/4] gnu: Add python-kerberos Christopher Baines
2020-03-22 23:36   ` [bug#38957] [PATCH 2/4] gnu: Add python-ntlm-auth Christopher Baines
2020-03-22 23:36   ` [bug#38957] [PATCH 3/4] gnu: Add python-requests_ntlm Christopher Baines
2020-03-22 23:36   ` [bug#38957] [PATCH 4/4] gnu: Add python-pywinrm Christopher Baines

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).