unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* [PATCH] python2-ansible, python-ccm and dependencies
@ 2015-07-24 16:21 Eric Dvorsak
  2015-07-25  9:28 ` Alex Kost
  2015-07-25 10:07 ` Ricardo Wurmus
  0 siblings, 2 replies; 8+ messages in thread
From: Eric Dvorsak @ 2015-07-24 16:21 UTC (permalink / raw)
  To: guix-devel


[-- Attachment #1.1: Type: text/plain, Size: 337 bytes --]

I added the following package definitions to python.scm :

- python2-ansible
- python-passlib
- python-py-bcrypt
- python-paramiko
- python-httplib2
- python-ecdsa
- python-ccm

This is my first commit ever so if I did something wrong or missed a step
in the process please let me know so I can improve for the next ones.

Eric Dvorsak.

[-- Attachment #1.2: Type: text/html, Size: 498 bytes --]

[-- Attachment #2: 0002-Add-python-ccm-python2-ansible-and-dependencies.patch --]
[-- Type: text/x-patch, Size: 7254 bytes --]

From e766bb8c21294c02d7db19f9789fa0c96c772fae Mon Sep 17 00:00:00 2001
From: Eric Dvorsak <yenda1@gmail.com>
Date: Fri, 24 Jul 2015 18:09:48 +0200
Subject: [PATCH 2/2] Add python-ccm, python2-ansible and dependencies

---
 gnu/packages/python.scm | 213 ++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 213 insertions(+)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 7709fbd..9ac997d 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -297,6 +297,219 @@ pidof, tty, taskset, pmap.")
 (define-public python2-psutil
   (package-with-python2 python-psutil))
 
+(define-public python2-ansible
+  (package
+    (name "python2-ansible")
+    (version "1.9.2")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append
+             "https://pypi.python.org/packages/source/a/ansible/ansible-"
+             version
+             ".tar.gz"))
+       (sha256
+        (base32
+         "007fzgsqaahb0y4gjdxxmir9kcni7wph2z14jhqgpz88idrz8pn2"))))
+    (build-system python-build-system)
+    (native-inputs
+     `(("python2-httplib2" ,python2-httplib2)
+       ("python2-passlib" ,python2-passlib)
+       ("python2-nose" ,python2-nose)
+       ("python2-mock" ,python2-mock)
+       ("python2-jinja2" ,python2-jinja2)
+       ("python2-pyyaml" ,python2-pyyaml)
+       ("python2-paramiko" ,python2-paramiko)))
+    (inputs
+     `(("python2-setuptools" ,python2-setuptools)
+       ("python2-jinja2" ,python2-jinja2)
+       ("python2-pyyaml" ,python2-pyyaml)
+       ("python2-paramiko" ,python2-paramiko)))
+    (arguments
+     `(#:python ,python-2)) ; incompatible with Python 3
+    (home-page "http://ansible.com/")
+    (synopsis "Radically simple IT automation")
+    (description "Radically simple IT automation")
+    (license gpl3)))
+
+(define-public python-passlib
+  (package
+    (name "python-passlib")
+    (version "1.6.2")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append
+             "https://pypi.python.org/packages/source/p/passlib/passlib-"
+             version
+             ".tar.gz"))
+       (sha256
+        (base32
+         "0b9rd161b3mmiwd7nx1v599yh9sp07mlfwac65sjy9qn1l0gd1z9"))))
+    (build-system python-build-system)
+    (inputs
+     `(("python-nose" ,python-nose)
+       ("python-py-bcrypt" ,python-py-bcrypt)
+       ("python-setuptools" ,python-setuptools)))
+    (arguments
+     `(#:phases
+       (alist-cons-before
+        'check 'set-PYTHON_EGG_CACHE
+        ;; some tests require access to "$HOME/.cython"
+        (lambda* _ (setenv "PYTHON_EGG_CACHE" "/tmp"))
+         %standard-phases)))
+    (home-page "http://passlib.googlecode.com")
+    (synopsis
+     "Comprehensive password hashing framework supporting over 30 schemes")
+    (description
+     "Comprehensive password hashing framework supporting over 30 schemes")
+    (license bsd-3))
+  )
+
+(define-public python2-passlib
+  (package-with-python2 python-passlib))
+
+(define-public python-py-bcrypt
+  (package
+    (name "python-py-bcrypt")
+    (version "0.4")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append
+             "https://pypi.python.org/packages/source/p/py-bcrypt/py-bcrypt-"
+             version
+             ".tar.gz"))
+       (sha256
+        (base32
+         "0y6smdggwi5s72v6p1nn53dg6w05hna3d264cq6kas0lap73p8az"))))
+    (build-system python-build-system)
+    (inputs
+     `(("python-setuptools" ,python-setuptools)))
+    (home-page "https://code.google.com/p/py-bcrypt")
+    (synopsis
+     "Bcrypt password hashing and key derivation")
+    (description
+     "Bcrypt password hashing and key derivation")
+    (license bsd-3)))
+
+(define-public python2-py-bcrypt
+  (package-with-python2 python-py-bcrypt))
+
+
+(define-public python-paramiko
+  (package
+    (name "python-paramiko")
+    (version "1.15.2")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append
+             "https://pypi.python.org/packages/source/p/paramiko/paramiko-"
+             version
+             ".tar.gz"))
+       (sha256
+        (base32
+         "0mbfzm9zlrz6mla9xakrm8wkll3x035f9rj3c5pbgjzfldqscmjg"))))
+    (build-system python-build-system)
+    (inputs
+     `(("python-ecdsa" ,python-ecdsa)
+       ("python-pycrypto" ,python-pycrypto)
+       ("python-setuptools" ,python-setuptools)))
+    (propagated-inputs
+     `(("python2-pycrypto" ,python2-pycrypto)))
+    (home-page
+     "https://github.com/paramiko/paramiko/")
+    (synopsis "SSH2 protocol library")
+    (description "SSH2 protocol library")
+    (license lgpl2.1)))
+
+(define-public python2-paramiko
+  (package-with-python2 python-paramiko))
+
+
+(define-public python-httplib2
+  (package
+    (name "python-httplib2")
+    (version "0.9.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append
+             "https://pypi.python.org/packages/source/h/httplib2/httplib2-"
+             version
+             ".tar.gz"))
+       (sha256
+        (base32
+         "1xc3clbrf77r0600kja71j7hk1218sjiq0gfmb8vjdajka8kjqxw"))))
+    (build-system python-build-system)
+    (inputs
+     `(("python-setuptools" ,python-setuptools)))
+    (home-page
+     "https://github.com/jcgregorio/httplib2")
+    (synopsis "Comprehensive HTTP client library")
+    (description
+     "A comprehensive HTTP client library.")
+    (license license:expat)))
+
+(define-public python2-httplib2
+  (package-with-python2 python-httplib2))
+
+(define-public python-ecdsa
+  (package
+    (name "python-ecdsa")
+    (version "0.13")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append
+             "https://pypi.python.org/packages/source/e/ecdsa/ecdsa-"
+             version
+             ".tar.gz"))
+       (sha256
+        (base32
+         "1yj31j0asmrx4an9xvsaj2icdmzy6pw0glfpqrrkrphwdpi1xkv4"))))
+    (build-system python-build-system)
+    (inputs
+     `(("openssl" ,openssl)
+       ("python-setuptools" ,python-setuptools)))
+    (home-page
+     "http://github.com/warner/python-ecdsa")
+    (synopsis
+     "ECDSA cryptographic signature library (pure python)")
+    (description
+     "ECDSA cryptographic signature library (pure python)")
+    (license license:expat)))
+
+(define-public python2-ecdsa
+  (package-with-python2 python-ecdsa))
+
+(define-public python-ccm
+  (package
+    (name "python-ccm")
+    (version "2.0.4.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append
+             "https://pypi.python.org/packages/source/c/ccm/ccm-"
+             version
+             ".tar.gz"))
+       (sha256
+        (base32
+         "199jw221albs2iv6xczczq88fxnh0aw8hzmys8qkbzkd99dssng9"))))
+    (build-system python-build-system)
+    (inputs
+     `(("python-pyyaml" ,python-pyyaml)
+       ("python-six" ,python-six)
+       ("python-setuptools" ,python-setuptools)))
+    (home-page "https://github.com/pcmanus/ccm")
+    (synopsis "Cassandra Cluster Manager")
+    (description "Cassandra Cluster Manager")
+    (license asl2.0)))
+
+(define-public python2-ccm
+  (package-with-python2 python-ccm))
 (define-public python-pytz
   (package
     (name "python-pytz")
-- 
2.4.3


[-- Attachment #3: 0001-gnu-git-modes-Add-file-name-field-to-source-origin.patch --]
[-- Type: text/x-patch, Size: 946 bytes --]

From 8fd3c1ff6e9ca0084d4ac6c2c515da093b2a7664 Mon Sep 17 00:00:00 2001
From: Mark H Weaver <mhw@netris.org>
Date: Wed, 22 Jul 2015 03:33:36 -0400
Subject: [PATCH 1/2] gnu: git-modes: Add file-name field to source origin.

* gnu/packages/emacs.scm (git-modes)[source]: Add 'file-name' field.
---
 gnu/packages/emacs.scm | 1 +
 1 file changed, 1 insertion(+)

diff --git a/gnu/packages/emacs.scm b/gnu/packages/emacs.scm
index d393e69..5074ab7 100644
--- a/gnu/packages/emacs.scm
+++ b/gnu/packages/emacs.scm
@@ -272,6 +272,7 @@ when typing parentheses directly or commenting out code line by line.")
               (uri (string-append
                     "https://github.com/magit/git-modes/archive/"
                     version ".tar.gz"))
+              (file-name (string-append name "-" version ".tar.gz"))
               (sha256
                (base32
                 "1biiss75bswx4alk85k3g9p0a3q3sc9i74h4mnrxc2rsk2iwhws0"))))
-- 
2.4.3


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

* Re: [PATCH] python2-ansible, python-ccm and dependencies
  2015-07-24 16:21 [PATCH] python2-ansible, python-ccm and dependencies Eric Dvorsak
@ 2015-07-25  9:28 ` Alex Kost
  2015-07-25 10:07 ` Ricardo Wurmus
  1 sibling, 0 replies; 8+ messages in thread
From: Alex Kost @ 2015-07-25  9:28 UTC (permalink / raw)
  To: Eric Dvorsak; +Cc: guix-devel

Eric Dvorsak (2015-07-24 19:21 +0300) wrote:

> I added the following package definitions to python.scm :
>
> - python2-ansible
> - python-passlib
> - python-py-bcrypt
> - python-paramiko
> - python-httplib2
> - python-ecdsa
> - python-ccm
>
> This is my first commit ever so if I did something wrong or missed a
> step in the process please let me know so I can improve for the next
> ones.
>
> Eric Dvorsak.

Hello and welcome!  We prefer a single patch per package and the commit
messages should look like this:

--8<---------------cut here---------------start------------->8---
gnu: Add python2-ansible.

* gnu/packages/python.scm (python2-ansible): New variable.
--8<---------------cut here---------------end--------------->8---

See also other python commits.

And some quick notes:

> +    (home-page "http://ansible.com/")
> +    (synopsis "Radically simple IT automation")
> +    (description "Radically simple IT automation")

Please, add periods in the end of descriptions.  And usually
descriptions should be more verbose than synopses.

> +    (license gpl3)))

'gpl3+'.  'gpl3' shouldn't even work in this module.

> +    (home-page "http://passlib.googlecode.com")

This page says the project has moved.  Perhaps
<https://pythonhosted.org/passlib/>?

> +    (synopsis
> +     "Comprehensive password hashing framework supporting over 30 schemes")
> +    (description
> +     "Comprehensive password hashing framework supporting over 30 schemes")
> +    (license bsd-3))
> +  )

       (license bsd-3)))

Please do not put a single parenthesis on a separate line.

> +(define-public python-paramiko
> +  (package
> +    (name "python-paramiko")
> +    (version "1.15.2")
> +    (source
> +     (origin
> +       (method url-fetch)
> +       (uri (string-append
> +             "https://pypi.python.org/packages/source/p/paramiko/paramiko-"
> +             version
> +             ".tar.gz"))
> +       (sha256
> +        (base32
> +         "0mbfzm9zlrz6mla9xakrm8wkll3x035f9rj3c5pbgjzfldqscmjg"))))
> +    (build-system python-build-system)
> +    (inputs
> +     `(("python-ecdsa" ,python-ecdsa)
> +       ("python-pycrypto" ,python-pycrypto)
> +       ("python-setuptools" ,python-setuptools)))
> +    (propagated-inputs
> +     `(("python2-pycrypto" ,python2-pycrypto)))

Did you mean "python-pycrypto" (not "python2-pycrypto")?

-- 
Alex

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

* Re: [PATCH] python2-ansible, python-ccm and dependencies
  2015-07-24 16:21 [PATCH] python2-ansible, python-ccm and dependencies Eric Dvorsak
  2015-07-25  9:28 ` Alex Kost
@ 2015-07-25 10:07 ` Ricardo Wurmus
  2015-07-25 19:58   ` Eric Dvorsak
  1 sibling, 1 reply; 8+ messages in thread
From: Ricardo Wurmus @ 2015-07-25 10:07 UTC (permalink / raw)
  To: Eric Dvorsak; +Cc: guix-devel


Hi Eric,

> I added the following package definitions to python.scm :
>
> - python2-ansible
> - python-passlib
> - python-py-bcrypt
> - python-paramiko
> - python-httplib2
> - python-ecdsa
> - python-ccm

we normally make separate commits for separate packages.  The only
exception is for when we add python-<name> as well as python2-<name>;
they usually go together in the same commit.

Please also run ‘guix lint package-name’ for each of the new packages.
It will tell you a couple of things that you could do to improve.

One thing I noticed is that the description you provide for the packages
is the same as the synopsis.  The description, however, should provide
more information and it should be complete sentences (with
punctuation).

Things like ‘("python-setuptools" ,python-setuptools)’ are to be placed
in the list of ‘native-inputs’.  ‘native-inputs’ are only used at build
time.

Finally, there is no space between your definition of ‘python2-ccm’ and
the existing definition of ‘python-pytz’.

The other patch looks good to me, but it appears that this is a patch by
Mark Weaver.  Did you submit it by accident?

~~ Ricardo

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

* Re: [PATCH] python2-ansible, python-ccm and dependencies
  2015-07-25 10:07 ` Ricardo Wurmus
@ 2015-07-25 19:58   ` Eric Dvorsak
  2015-07-26  9:56     ` Alex Kost
  0 siblings, 1 reply; 8+ messages in thread
From: Eric Dvorsak @ 2015-07-25 19:58 UTC (permalink / raw)
  To: Ricardo Wurmus, Alex Kost; +Cc: guix-devel


[-- Attachment #1.1: Type: text/plain, Size: 1517 bytes --]

Thank you Ricardo and Alex for taking the time to review and comment my
patch. I edited it to take your advices into account. I hope I did not miss
anything this time

Eric

2015-07-25 12:07 GMT+02:00 Ricardo Wurmus <rekado@elephly.net>:

>
> Hi Eric,
>
> > I added the following package definitions to python.scm :
> >
> > - python2-ansible
> > - python-passlib
> > - python-py-bcrypt
> > - python-paramiko
> > - python-httplib2
> > - python-ecdsa
> > - python-ccm
>
> we normally make separate commits for separate packages.  The only
> exception is for when we add python-<name> as well as python2-<name>;
> they usually go together in the same commit.
>
> Please also run ‘guix lint package-name’ for each of the new packages.
> It will tell you a couple of things that you could do to improve.
>
> One thing I noticed is that the description you provide for the packages
> is the same as the synopsis.  The description, however, should provide
> more information and it should be complete sentences (with
> punctuation).
>
> Things like ‘("python-setuptools" ,python-setuptools)’ are to be placed
> in the list of ‘native-inputs’.  ‘native-inputs’ are only used at build
> time.
>
> Finally, there is no space between your definition of ‘python2-ccm’ and
> the existing definition of ‘python-pytz’.
>
> The other patch looks good to me, but it appears that this is a patch by
> Mark Weaver.  Did you submit it by accident?
>
> ~~ Ricardo
>
>

[-- Attachment #1.2: Type: text/html, Size: 2012 bytes --]

[-- Attachment #2: 0001-gnu-Add-python2-pycrypto.patch --]
[-- Type: text/x-patch, Size: 839 bytes --]

From c1dde968fb8b0384fb147b4aa4172816478da974 Mon Sep 17 00:00:00 2001
From: Eric Dvorsak <yenda1@gmail.com>
Date: Sat, 25 Jul 2015 21:31:05 +0200
Subject: [PATCH 1/8] gnu: Add python2-pycrypto.

* gnu/packages/python.scm (python2-pycrypto): New variable.
---
 gnu/packages/python.scm | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 7709fbd..6235b48 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -538,6 +538,9 @@ and RIPEMD160), and various encryption algorithms (AES, DES, RSA, ElGamal,
 etc.).  The package is structured to make adding new modules easy.")
     (license public-domain)))
 
+(define-public python2-pycrypto
+  (package-with-python2 python-pycrypto))
+
 (define-public python-keyring
   (package
     (name "python-keyring")
-- 
2.4.3


[-- Attachment #3: 0002-gnu-Add-python-ccm.patch --]
[-- Type: text/x-patch, Size: 1597 bytes --]

From 80fad0306460b97e3a4de0581be1bed45d699698 Mon Sep 17 00:00:00 2001
From: Eric Dvorsak <yenda1@gmail.com>
Date: Sat, 25 Jul 2015 21:34:19 +0200
Subject: [PATCH 2/8] gnu: Add python-ccm.

* gnu/packages/python.scm (python-ccm, python2-ccm): New variables.
---
 gnu/packages/python.scm | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 6235b48..15d62fc 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -297,6 +297,34 @@ pidof, tty, taskset, pmap.")
 (define-public python2-psutil
   (package-with-python2 python-psutil))
 
+(define-public python-ccm
+  (package
+    (name "python-ccm")
+    (version "2.0.4.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append
+             "https://pypi.python.org/packages/source/c/ccm/ccm-"
+             version
+             ".tar.gz"))
+       (sha256
+        (base32
+         "199jw221albs2iv6xczczq88fxnh0aw8hzmys8qkbzkd99dssng9"))))
+    (build-system python-build-system)
+    (native-inputs
+     `(("python-setuptools" ,python-setuptools)))
+    (inputs
+     `(("python-pyyaml" ,python-pyyaml)
+       ("python-six" ,python-six)))
+    (home-page "https://github.com/pcmanus/ccm")
+    (synopsis "Cassandra Cluster Manager")
+    (description "A script/library to create, launch and remove an Apache Cassandra cluster on localhost.")
+    (license asl2.0)))
+
+(define-public python2-ccm
+  (package-with-python2 python-ccm))
+
 (define-public python-pytz
   (package
     (name "python-pytz")
-- 
2.4.3


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

From 295fc4b3ccae4d0222ed74e0d6d6031170c8b56e Mon Sep 17 00:00:00 2001
From: Eric Dvorsak <yenda1@gmail.com>
Date: Sat, 25 Jul 2015 21:35:35 +0200
Subject: [PATCH 3/8] gnu: Add python-ecdsa.

* gnu/packages/python.scm (python-ecdsa, python2-ecdsa): New variables.
---
 gnu/packages/python.scm | 30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 15d62fc..76eaafd 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -297,6 +297,36 @@ pidof, tty, taskset, pmap.")
 (define-public python2-psutil
   (package-with-python2 python-psutil))
 
+(define-public python-ecdsa
+  (package
+    (name "python-ecdsa")
+    (version "0.13")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append
+             "https://pypi.python.org/packages/source/e/ecdsa/ecdsa-"
+             version
+             ".tar.gz"))
+       (sha256
+        (base32
+         "1yj31j0asmrx4an9xvsaj2icdmzy6pw0glfpqrrkrphwdpi1xkv4"))))
+    (build-system python-build-system)
+    (native-inputs
+     `(("python-setuptools" ,python-setuptools)))
+    (inputs
+     `(("openssl" ,openssl)))
+    (home-page
+     "http://github.com/warner/python-ecdsa")
+    (synopsis
+     "ECDSA cryptographic signature library (pure python)")
+    (description
+     "This is an easy-to-use implementation of ECDSA cryptography (Elliptic Curve Digital Signature Algorithm), implemented purely in Python.  With this library, you can quickly create keypairs (signing key and verifying key), sign messages, and verify the signatures.  The keys and signatures are very short, making them easy to handle and incorporate into other protocols.")
+    (license license:expat)))
+
+(define-public python2-ecdsa
+  (package-with-python2 python-ecdsa))
+
 (define-public python-ccm
   (package
     (name "python-ccm")
-- 
2.4.3


[-- Attachment #5: 0004-gnu-Add-python-httplib2.patch --]
[-- Type: text/x-patch, Size: 1591 bytes --]

From f844c8755dce3a53b0ad2a8a7200491fee7d98e0 Mon Sep 17 00:00:00 2001
From: Eric Dvorsak <yenda1@gmail.com>
Date: Sat, 25 Jul 2015 21:36:51 +0200
Subject: [PATCH 4/8] gnu: Add python-httplib2.

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

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 76eaafd..400b3f3 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -297,6 +297,33 @@ pidof, tty, taskset, pmap.")
 (define-public python2-psutil
   (package-with-python2 python-psutil))
 
+(define-public python-httplib2
+  (package
+    (name "python-httplib2")
+    (version "0.9.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append
+             "https://pypi.python.org/packages/source/h/httplib2/httplib2-"
+             version
+             ".tar.gz"))
+       (sha256
+        (base32
+         "1xc3clbrf77r0600kja71j7hk1218sjiq0gfmb8vjdajka8kjqxw"))))
+    (build-system python-build-system)
+    (native-inputs
+     `(("python-setuptools" ,python-setuptools)))
+    (home-page
+     "https://github.com/jcgregorio/httplib2")
+    (synopsis "Comprehensive HTTP client library")
+    (description
+     "A comprehensive HTTP client library supporting many features left out of other HTTP libraries.")
+    (license license:expat)))
+
+(define-public python2-httplib2
+  (package-with-python2 python-httplib2))
+
 (define-public python-ecdsa
   (package
     (name "python-ecdsa")
-- 
2.4.3


[-- Attachment #6: 0005-gnu-Add-python-paramiko.patch --]
[-- Type: text/x-patch, Size: 1826 bytes --]

From 9cbb1d6d83dd2282d3583c1ad438cf3421239362 Mon Sep 17 00:00:00 2001
From: Eric Dvorsak <yenda1@gmail.com>
Date: Sat, 25 Jul 2015 21:38:04 +0200
Subject: [PATCH 5/8] gnu: Add python-paramiko.

* gnu/packages/python.scm (python-paramiko, python2-paramiko): New variables.
---
 gnu/packages/python.scm | 29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 400b3f3..cc0ed25 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -297,6 +297,35 @@ pidof, tty, taskset, pmap.")
 (define-public python2-psutil
   (package-with-python2 python-psutil))
 
+(define-public python-paramiko
+  (package
+    (name "python-paramiko")
+    (version "1.15.2")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append
+             "https://pypi.python.org/packages/source/p/paramiko/paramiko-"
+             version
+             ".tar.gz"))
+       (sha256
+        (base32
+         "0mbfzm9zlrz6mla9xakrm8wkll3x035f9rj3c5pbgjzfldqscmjg"))))
+    (build-system python-build-system)
+    (native-inputs
+     `(("python-setuptools" ,python-setuptools)))
+    (inputs
+     `(("python-ecdsa" ,python-ecdsa)
+       ("python-pycrypto" ,python-pycrypto)))
+    (home-page "http://www.paramiko.org/")
+    (synopsis "SSHv2 protocol library")
+    (description "Paramiko is a python implementation of the SSHv2 protocol, providing both client and server functionality.  While it leverages a Python C extension for low level cryptography (PyCrypto), Paramiko itself is a pure Python interface around SSH networking concepts.")
+    (license lgpl2.1)))
+
+(define-public python2-paramiko
+  (package-with-python2 python-paramiko))
+
+
 (define-public python-httplib2
   (package
     (name "python-httplib2")
-- 
2.4.3


[-- Attachment #7: 0006-gnu-Add-python-py-bcrypt.patch --]
[-- Type: text/x-patch, Size: 2055 bytes --]

From 52b97d96f0952194560040b9279fcff17c94a728 Mon Sep 17 00:00:00 2001
From: Eric Dvorsak <yenda1@gmail.com>
Date: Sat, 25 Jul 2015 21:39:03 +0200
Subject: [PATCH 6/8] gnu: Add python-py-bcrypt.

* gnu/packages/python.scm (python-py-bcrypt, python2-py-bcrypt): New variables.
---
 gnu/packages/python.scm | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index cc0ed25..904ec1e 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -297,6 +297,34 @@ pidof, tty, taskset, pmap.")
 (define-public python2-psutil
   (package-with-python2 python-psutil))
 
+(define-public python-py-bcrypt
+  (package
+    (name "python-py-bcrypt")
+    (version "0.4")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append
+             "https://pypi.python.org/packages/source/p/py-bcrypt/py-bcrypt-"
+             version
+             ".tar.gz"))
+       (sha256
+        (base32
+         "0y6smdggwi5s72v6p1nn53dg6w05hna3d264cq6kas0lap73p8az"))))
+    (build-system python-build-system)
+    (native-inputs
+     `(("python-setuptools" ,python-setuptools)))
+    (home-page "https://code.google.com/p/py-bcrypt")
+    (synopsis
+     "Bcrypt password hashing and key derivation")
+    (description
+     "A python wrapper of OpenBSD's Blowfish password hashing code.  This system hashes passwords using a version of Bruce Schneier's Blowfish block cipher with modifications designed to raise the cost of off-line password cracking and frustrate fast hardware implementation.  The computation cost of the algorithm is parametised, so it can be increased as computers get faster.  The intent is to make a compromise of a password database less likely to result in an attacker gaining knowledge of the plaintext passwords (e.g. using John the Ripper).")
+    (license bsd-3)))
+
+(define-public python2-py-bcrypt
+  (package-with-python2 python-py-bcrypt))
+
+
 (define-public python-paramiko
   (package
     (name "python-paramiko")
-- 
2.4.3


[-- Attachment #8: 0007-gnu-Add-python-passlib.patch --]
[-- Type: text/x-patch, Size: 2220 bytes --]

From 024f09d08372146f4ed2e207bc8f8ecd3c277ffd Mon Sep 17 00:00:00 2001
From: Eric Dvorsak <yenda1@gmail.com>
Date: Sat, 25 Jul 2015 21:39:50 +0200
Subject: [PATCH 7/8] gnu: Add python-passlib.

* gnu/packages/python.scm (python-passlib, python2-passlib): New variables.
---
 gnu/packages/python.scm | 37 +++++++++++++++++++++++++++++++++++++
 1 file changed, 37 insertions(+)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 904ec1e..314896e 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -297,6 +297,43 @@ pidof, tty, taskset, pmap.")
 (define-public python2-psutil
   (package-with-python2 python-psutil))
 
+(define-public python-passlib
+  (package
+    (name "python-passlib")
+    (version "1.6.2")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append
+             "https://pypi.python.org/packages/source/p/passlib/passlib-"
+             version
+             ".tar.gz"))
+       (sha256
+        (base32
+         "0b9rd161b3mmiwd7nx1v599yh9sp07mlfwac65sjy9qn1l0gd1z9"))))
+    (build-system python-build-system)
+    (native-inputs
+     `(("python-nose" ,python-nose)
+       ("python-setuptools" ,python-setuptools)))
+    (inputs
+     `(("python-py-bcrypt" ,python-py-bcrypt)))
+    (arguments
+     `(#:phases
+       (alist-cons-before
+        'check 'set-PYTHON_EGG_CACHE
+        ;; some tests require access to "$HOME/.cython"
+        (lambda* _ (setenv "PYTHON_EGG_CACHE" "/tmp"))
+         %standard-phases)))
+    (home-page "https://bitbucket.org/ecollins/passlib")
+    (synopsis
+     "Comprehensive password hashing framework")
+    (description
+     "Passlib is a password hashing library for Python 2 & 3, which provides cross-platform implementations of over 30 password hashing algorithms, as well as a framework for managing existing password hashes.  It's designed to be useful for a wide range of tasks, from verifying a hash found in /etc/shadow, to providing full-strength password hashing for multi-user application.")
+    (license bsd-3)))
+
+(define-public python2-passlib
+  (package-with-python2 python-passlib))
+
 (define-public python-py-bcrypt
   (package
     (name "python-py-bcrypt")
-- 
2.4.3


[-- Attachment #9: 0008-gnu-Add-python2-ansible.patch --]
[-- Type: text/x-patch, Size: 2774 bytes --]

From 9d1c4ae575eab89074ab88a99bc57a3031fbf19f Mon Sep 17 00:00:00 2001
From: Eric Dvorsak <yenda1@gmail.com>
Date: Sat, 25 Jul 2015 21:40:24 +0200
Subject: [PATCH 8/8] gnu: Add python2-ansible.

* gnu/packages/python.scm (python2-ansible): New variable.
---
 gnu/packages/python.scm | 39 ++++++++++++++++++++++++++++++++++++++-
 1 file changed, 38 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 314896e..a8fdc56 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -28,7 +28,7 @@
 (define-module (gnu packages python)
   #:use-module ((guix licenses)
                 #:select (asl2.0 bsd-4 bsd-3 bsd-2 non-copyleft cc0 x11 x11-style
-                          gpl2 gpl2+ gpl3+ lgpl2.0+ lgpl2.1 lgpl2.1+ lgpl3+
+                          gpl2 gpl2+ gpl3 gpl3+ lgpl2.0+ lgpl2.1 lgpl2.1+ lgpl3+
                           psfl public-domain x11-style))
   #:use-module ((guix licenses) #:select (expat zlib) #:prefix license:)
   #:use-module (gnu packages)
@@ -297,6 +297,43 @@ pidof, tty, taskset, pmap.")
 (define-public python2-psutil
   (package-with-python2 python-psutil))
 
+(define-public python2-ansible
+  (package
+    (name "python2-ansible")
+    (version "1.9.2")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append
+             "https://pypi.python.org/packages/source/a/ansible/ansible-"
+             version
+             ".tar.gz"))
+       (sha256
+        (base32
+         "007fzgsqaahb0y4gjdxxmir9kcni7wph2z14jhqgpz88idrz8pn2"))))
+    (build-system python-build-system)
+    (native-inputs
+     `(("python2-setuptools" ,python2-setuptools)
+       ("python2-pycrypto" ,python2-pycrypto)
+       ("python2-httplib2" ,python2-httplib2)
+       ("python2-passlib" ,python2-passlib)
+       ("python2-nose" ,python2-nose)
+       ("python2-mock" ,python2-mock)
+       ("python2-jinja2" ,python2-jinja2)
+       ("python2-pyyaml" ,python2-pyyaml)
+       ("python2-paramiko" ,python2-paramiko)))
+    (inputs
+     `(("python2-pycrypto" ,python2-pycrypto)
+       ("python2-jinja2" ,python2-jinja2)
+       ("python2-pyyaml" ,python2-pyyaml)
+       ("python2-paramiko" ,python2-paramiko)))
+    (arguments
+     `(#:python ,python-2)) ; incompatible with Python 3
+    (home-page "http://ansible.com/")
+    (synopsis "Radically simple IT automation")
+    (description "Ansible is a radically simple IT automation system.  It handles configuration-management, application deployment, cloud provisioning, ad-hoc task-execution, and multinode orchestration - including trivializing things like zero downtime rolling updates with load balancers.")
+    (license gpl3)))
+
 (define-public python-passlib
   (package
     (name "python-passlib")
-- 
2.4.3


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

* Re: [PATCH] python2-ansible, python-ccm and dependencies
  2015-07-25 19:58   ` Eric Dvorsak
@ 2015-07-26  9:56     ` Alex Kost
  2015-07-26 12:05       ` Eric Dvorsak
  0 siblings, 1 reply; 8+ messages in thread
From: Alex Kost @ 2015-07-26  9:56 UTC (permalink / raw)
  To: Eric Dvorsak; +Cc: guix-devel

Eric Dvorsak (2015-07-25 22:58 +0300) wrote:

> Thank you Ricardo and Alex for taking the time to review and comment my
> patch. I edited it to take your advices into account. I hope I did not miss
> anything this time

Please add the following line to "python.scm":

;;; Copyright © 2015 Eric Dvorsak <yenda1@gmail.com>

I think you can do it in the first patch.

[...]
> +    (synopsis "Cassandra Cluster Manager")
> +    (description "A script/library to create, launch and remove an Apache Cassandra cluster on localhost.")

Please, do not use long lines (more than 72-78 chars).  If you use
Emacs, you may just "M-q" inside descriptions.

[...]
> +(define-public python2-ansible
> +  (package
> +    (name "python2-ansible")
> +    (version "1.9.2")
> +    (source
> +     (origin
> +       (method url-fetch)
> +       (uri (string-append
> +             "https://pypi.python.org/packages/source/a/ansible/ansible-"
> +             version
> +             ".tar.gz"))
> +       (sha256
> +        (base32
> +         "007fzgsqaahb0y4gjdxxmir9kcni7wph2z14jhqgpz88idrz8pn2"))))
> +    (build-system python-build-system)
> +    (native-inputs
> +     `(("python2-setuptools" ,python2-setuptools)
> +       ("python2-pycrypto" ,python2-pycrypto)
> +       ("python2-httplib2" ,python2-httplib2)
> +       ("python2-passlib" ,python2-passlib)
> +       ("python2-nose" ,python2-nose)
> +       ("python2-mock" ,python2-mock)
> +       ("python2-jinja2" ,python2-jinja2)
> +       ("python2-pyyaml" ,python2-pyyaml)
> +       ("python2-paramiko" ,python2-paramiko)))
> +    (inputs
> +     `(("python2-pycrypto" ,python2-pycrypto)
> +       ("python2-jinja2" ,python2-jinja2)
> +       ("python2-pyyaml" ,python2-pyyaml)
> +       ("python2-paramiko" ,python2-paramiko)))
> +    (arguments
> +     `(#:python ,python-2)) ; incompatible with Python 3
> +    (home-page "http://ansible.com/")
> +    (synopsis "Radically simple IT automation")
> +    (description "Ansible is a radically simple IT automation system.  It handles configuration-management, application deployment, cloud provisioning, ad-hoc task-execution, and multinode orchestration - including trivializing things like zero downtime rolling updates with load balancers.")
> +    (license gpl3)))

I think it should be 'gpl3+'.  AFAICS
<https://github.com/ansible/ansible/blob/devel/COPYING> is a usual GPL
license <http://www.gnu.org/licenses/gpl.txt> which has "or any later
version" in it, so we use 'gpl3+' for this.

Otherwise, the patches look good to me, perhaps the others will notice
more.  I can only confirm that the packages built successfully here.

-- 
Alex

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

* Re: [PATCH] python2-ansible, python-ccm and dependencies
  2015-07-26  9:56     ` Alex Kost
@ 2015-07-26 12:05       ` Eric Dvorsak
  2015-07-29  9:51         ` Alex Kost
  0 siblings, 1 reply; 8+ messages in thread
From: Eric Dvorsak @ 2015-07-26 12:05 UTC (permalink / raw)
  To: Alex Kost; +Cc: guix-devel


[-- Attachment #1.1: Type: text/plain, Size: 2989 bytes --]

Ok I have made all the changes you recommended. Thank you for your help.

2015-07-26 11:56 GMT+02:00 Alex Kost <alezost@gmail.com>:

> Eric Dvorsak (2015-07-25 22:58 +0300) wrote:
>
> > Thank you Ricardo and Alex for taking the time to review and comment my
> > patch. I edited it to take your advices into account. I hope I did not
> miss
> > anything this time
>
> Please add the following line to "python.scm":
>
> ;;; Copyright © 2015 Eric Dvorsak <yenda1@gmail.com>
>
> I think you can do it in the first patch.
>
> [...]
> > +    (synopsis "Cassandra Cluster Manager")
> > +    (description "A script/library to create, launch and remove an
> Apache Cassandra cluster on localhost.")
>
> Please, do not use long lines (more than 72-78 chars).  If you use
> Emacs, you may just "M-q" inside descriptions.
>
> [...]
> > +(define-public python2-ansible
> > +  (package
> > +    (name "python2-ansible")
> > +    (version "1.9.2")
> > +    (source
> > +     (origin
> > +       (method url-fetch)
> > +       (uri (string-append
> > +             "
> https://pypi.python.org/packages/source/a/ansible/ansible-"
> > +             version
> > +             ".tar.gz"))
> > +       (sha256
> > +        (base32
> > +         "007fzgsqaahb0y4gjdxxmir9kcni7wph2z14jhqgpz88idrz8pn2"))))
> > +    (build-system python-build-system)
> > +    (native-inputs
> > +     `(("python2-setuptools" ,python2-setuptools)
> > +       ("python2-pycrypto" ,python2-pycrypto)
> > +       ("python2-httplib2" ,python2-httplib2)
> > +       ("python2-passlib" ,python2-passlib)
> > +       ("python2-nose" ,python2-nose)
> > +       ("python2-mock" ,python2-mock)
> > +       ("python2-jinja2" ,python2-jinja2)
> > +       ("python2-pyyaml" ,python2-pyyaml)
> > +       ("python2-paramiko" ,python2-paramiko)))
> > +    (inputs
> > +     `(("python2-pycrypto" ,python2-pycrypto)
> > +       ("python2-jinja2" ,python2-jinja2)
> > +       ("python2-pyyaml" ,python2-pyyaml)
> > +       ("python2-paramiko" ,python2-paramiko)))
> > +    (arguments
> > +     `(#:python ,python-2)) ; incompatible with Python 3
> > +    (home-page "http://ansible.com/")
> > +    (synopsis "Radically simple IT automation")
> > +    (description "Ansible is a radically simple IT automation system.
> It handles configuration-management, application deployment, cloud
> provisioning, ad-hoc task-execution, and multinode orchestration -
> including trivializing things like zero downtime rolling updates with load
> balancers.")
> > +    (license gpl3)))
>
> I think it should be 'gpl3+'.  AFAICS
> <https://github.com/ansible/ansible/blob/devel/COPYING> is a usual GPL
> license <http://www.gnu.org/licenses/gpl.txt> which has "or any later
> version" in it, so we use 'gpl3+' for this.
>
> Otherwise, the patches look good to me, perhaps the others will notice
> more.  I can only confirm that the packages built successfully here.
>
> --
> Alex
>

[-- Attachment #1.2: Type: text/html, Size: 4487 bytes --]

[-- Attachment #2: 0001-gnu-Add-python2-pycrypto.patch --]
[-- Type: text/x-patch, Size: 1149 bytes --]

From 7bc1543f231993e6e04c2a79e6840663f14c0def Mon Sep 17 00:00:00 2001
From: Eric Dvorsak <yenda1@gmail.com>
Date: Sat, 25 Jul 2015 21:31:05 +0200
Subject: [PATCH 1/8] gnu: Add python2-pycrypto.

* gnu/packages/python.scm (python2-pycrypto): New variable.
---
 gnu/packages/python.scm | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 7709fbd..b70d937 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -9,6 +9,7 @@
 ;;; Copyright © 2015 Pierre-Antoine Rault <par@rigelk.eu>
 ;;; Copyright © 2015 Ricardo Wurmus <rekado@elephly.net>
 ;;; Copyright © 2015 Christopher Allan Webber <cwebber@dustycloud.org>
+;;; Copyright © 2015 Eric Dvorsak <yenda1@gmail.com>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -538,6 +539,9 @@ and RIPEMD160), and various encryption algorithms (AES, DES, RSA, ElGamal,
 etc.).  The package is structured to make adding new modules easy.")
     (license public-domain)))
 
+(define-public python2-pycrypto
+  (package-with-python2 python-pycrypto))
+
 (define-public python-keyring
   (package
     (name "python-keyring")
-- 
2.4.3


[-- Attachment #3: 0002-gnu-Add-python-ccm.patch --]
[-- Type: text/x-patch, Size: 1599 bytes --]

From d15941992f1a8b882902990641cee2b1e89c2b6d Mon Sep 17 00:00:00 2001
From: Eric Dvorsak <yenda1@gmail.com>
Date: Sat, 25 Jul 2015 21:34:19 +0200
Subject: [PATCH 2/8] gnu: Add python-ccm.

* gnu/packages/python.scm (python-ccm, python2-ccm): New variables.
---
 gnu/packages/python.scm | 29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index b70d937..d78e9df 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -298,6 +298,35 @@ pidof, tty, taskset, pmap.")
 (define-public python2-psutil
   (package-with-python2 python-psutil))
 
+(define-public python-ccm
+  (package
+    (name "python-ccm")
+    (version "2.0.4.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append
+             "https://pypi.python.org/packages/source/c/ccm/ccm-"
+             version
+             ".tar.gz"))
+       (sha256
+        (base32
+         "199jw221albs2iv6xczczq88fxnh0aw8hzmys8qkbzkd99dssng9"))))
+    (build-system python-build-system)
+    (native-inputs
+     `(("python-setuptools" ,python-setuptools)))
+    (inputs
+     `(("python-pyyaml" ,python-pyyaml)
+       ("python-six" ,python-six)))
+    (home-page "https://github.com/pcmanus/ccm")
+    (synopsis "Cassandra Cluster Manager")
+    (description "A script/library to create, launch and remove an Apache
+Cassandra cluster on localhost.")
+    (license asl2.0)))
+
+(define-public python2-ccm
+  (package-with-python2 python-ccm))
+
 (define-public python-pytz
   (package
     (name "python-pytz")
-- 
2.4.3


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

From 3e8445d4e68141905f570c55d577e9d703ca79c7 Mon Sep 17 00:00:00 2001
From: Eric Dvorsak <yenda1@gmail.com>
Date: Sat, 25 Jul 2015 21:35:35 +0200
Subject: [PATCH 3/8] gnu: Add python-ecdsa.

* gnu/packages/python.scm (python-ecdsa, python2-ecdsa): New variables.
---
 gnu/packages/python.scm | 34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index d78e9df..a01a82d 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -298,6 +298,40 @@ pidof, tty, taskset, pmap.")
 (define-public python2-psutil
   (package-with-python2 python-psutil))
 
+(define-public python-ecdsa
+  (package
+    (name "python-ecdsa")
+    (version "0.13")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append
+             "https://pypi.python.org/packages/source/e/ecdsa/ecdsa-"
+             version
+             ".tar.gz"))
+       (sha256
+        (base32
+         "1yj31j0asmrx4an9xvsaj2icdmzy6pw0glfpqrrkrphwdpi1xkv4"))))
+    (build-system python-build-system)
+    (native-inputs
+     `(("python-setuptools" ,python-setuptools)))
+    (inputs
+     `(("openssl" ,openssl)))
+    (home-page
+     "http://github.com/warner/python-ecdsa")
+    (synopsis
+     "ECDSA cryptographic signature library (pure python)")
+    (description
+     "This is an easy-to-use implementation of ECDSA cryptography (Elliptic
+Curve Digital Signature Algorithm), implemented purely in Python.  With this
+library, you can quickly create keypairs (signing key and verifying key), sign
+messages, and verify the signatures.  The keys and signatures are very short,
+making them easy to handle and incorporate into other protocols.")
+    (license license:expat)))
+
+(define-public python2-ecdsa
+  (package-with-python2 python-ecdsa))
+
 (define-public python-ccm
   (package
     (name "python-ccm")
-- 
2.4.3


[-- Attachment #5: 0004-gnu-Add-python-httplib2.patch --]
[-- Type: text/x-patch, Size: 1593 bytes --]

From aaf785082a0dc3a9bcef21470504996db4cbcd9d Mon Sep 17 00:00:00 2001
From: Eric Dvorsak <yenda1@gmail.com>
Date: Sat, 25 Jul 2015 21:36:51 +0200
Subject: [PATCH 4/8] gnu: Add python-httplib2.

* gnu/packages/python.scm (python-httplib2, python-httplib2): New variables.
---
 gnu/packages/python.scm | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index a01a82d..33e2b67 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -298,6 +298,34 @@ pidof, tty, taskset, pmap.")
 (define-public python2-psutil
   (package-with-python2 python-psutil))
 
+(define-public python-httplib2
+  (package
+    (name "python-httplib2")
+    (version "0.9.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append
+             "https://pypi.python.org/packages/source/h/httplib2/httplib2-"
+             version
+             ".tar.gz"))
+       (sha256
+        (base32
+         "1xc3clbrf77r0600kja71j7hk1218sjiq0gfmb8vjdajka8kjqxw"))))
+    (build-system python-build-system)
+    (native-inputs
+     `(("python-setuptools" ,python-setuptools)))
+    (home-page
+     "https://github.com/jcgregorio/httplib2")
+    (synopsis "Comprehensive HTTP client library")
+    (description
+     "A comprehensive HTTP client library supporting many features left out of
+other HTTP libraries.")
+    (license license:expat)))
+
+(define-public python2-httplib2
+  (package-with-python2 python-httplib2))
+
 (define-public python-ecdsa
   (package
     (name "python-ecdsa")
-- 
2.4.3


[-- Attachment #6: 0005-gnu-Add-python-paramiko.patch --]
[-- Type: text/x-patch, Size: 1832 bytes --]

From 5dd21f7ac82a48f70a32a403393f02c909d53bba Mon Sep 17 00:00:00 2001
From: Eric Dvorsak <yenda1@gmail.com>
Date: Sat, 25 Jul 2015 21:38:04 +0200
Subject: [PATCH 5/8] gnu: Add python-paramiko.

* gnu/packages/python.scm (python-paramiko, python2-paramiko): New variables.
---
 gnu/packages/python.scm | 32 ++++++++++++++++++++++++++++++++
 1 file changed, 32 insertions(+)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 33e2b67..1582fce 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -298,6 +298,38 @@ pidof, tty, taskset, pmap.")
 (define-public python2-psutil
   (package-with-python2 python-psutil))
 
+(define-public python-paramiko
+  (package
+    (name "python-paramiko")
+    (version "1.15.2")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append
+             "https://pypi.python.org/packages/source/p/paramiko/paramiko-"
+             version
+             ".tar.gz"))
+       (sha256
+        (base32
+         "0mbfzm9zlrz6mla9xakrm8wkll3x035f9rj3c5pbgjzfldqscmjg"))))
+    (build-system python-build-system)
+    (native-inputs
+     `(("python-setuptools" ,python-setuptools)))
+    (inputs
+     `(("python-ecdsa" ,python-ecdsa)
+       ("python-pycrypto" ,python-pycrypto)))
+    (home-page "http://www.paramiko.org/")
+    (synopsis "SSHv2 protocol library")
+    (description "Paramiko is a python implementation of the SSHv2 protocol,
+providing both client and server functionality.  While it leverages a Python C
+extension for low level cryptography (PyCrypto), Paramiko itself is a pure
+Python interface around SSH networking concepts.")
+    (license lgpl2.1)))
+
+(define-public python2-paramiko
+  (package-with-python2 python-paramiko))
+
+
 (define-public python-httplib2
   (package
     (name "python-httplib2")
-- 
2.4.3


[-- Attachment #7: 0006-gnu-Add-python-py-bcrypt.patch --]
[-- Type: text/x-patch, Size: 2068 bytes --]

From 607d391df2761641b935aedc486a0c08be47603f Mon Sep 17 00:00:00 2001
From: Eric Dvorsak <yenda1@gmail.com>
Date: Sat, 25 Jul 2015 21:39:03 +0200
Subject: [PATCH 6/8] gnu: Add python-py-bcrypt.

* gnu/packages/python.scm (python-py-bcrypt, python2-py-bcrypt): New variables.
---
 gnu/packages/python.scm | 35 +++++++++++++++++++++++++++++++++++
 1 file changed, 35 insertions(+)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 1582fce..f4fb5dd 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -298,6 +298,41 @@ pidof, tty, taskset, pmap.")
 (define-public python2-psutil
   (package-with-python2 python-psutil))
 
+(define-public python-py-bcrypt
+  (package
+    (name "python-py-bcrypt")
+    (version "0.4")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append
+             "https://pypi.python.org/packages/source/p/py-bcrypt/py-bcrypt-"
+             version
+             ".tar.gz"))
+       (sha256
+        (base32
+         "0y6smdggwi5s72v6p1nn53dg6w05hna3d264cq6kas0lap73p8az"))))
+    (build-system python-build-system)
+    (native-inputs
+     `(("python-setuptools" ,python-setuptools)))
+    (home-page "https://code.google.com/p/py-bcrypt")
+    (synopsis
+     "Bcrypt password hashing and key derivation")
+    (description
+     "A python wrapper of OpenBSD's Blowfish password hashing code.  This
+system hashes passwords using a version of Bruce Schneier's Blowfish block
+cipher with modifications designed to raise the cost of off-line password
+cracking and frustrate fast hardware implementation.  The computation cost of
+the algorithm is parametised, so it can be increased as computers get faster.
+The intent is to make a compromise of a password database less likely to
+result in an attacker gaining knowledge of the plaintext passwords (e.g. using
+John the Ripper).")
+    (license bsd-3)))
+
+(define-public python2-py-bcrypt
+  (package-with-python2 python-py-bcrypt))
+
+
 (define-public python-paramiko
   (package
     (name "python-paramiko")
-- 
2.4.3


[-- Attachment #8: 0007-gnu-Add-python-passlib.patch --]
[-- Type: text/x-patch, Size: 2228 bytes --]

From 3c6bb577c47a31de5fc1384bd0022c6c4add53a6 Mon Sep 17 00:00:00 2001
From: Eric Dvorsak <yenda1@gmail.com>
Date: Sat, 25 Jul 2015 21:39:50 +0200
Subject: [PATCH 7/8] gnu: Add python-passlib.

* gnu/packages/python.scm (python-passlib, python2-passlib): New variables.
---
 gnu/packages/python.scm | 41 +++++++++++++++++++++++++++++++++++++++++
 1 file changed, 41 insertions(+)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index f4fb5dd..5d18852 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -298,6 +298,47 @@ pidof, tty, taskset, pmap.")
 (define-public python2-psutil
   (package-with-python2 python-psutil))
 
+(define-public python-passlib
+  (package
+    (name "python-passlib")
+    (version "1.6.2")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append
+             "https://pypi.python.org/packages/source/p/passlib/passlib-"
+             version
+             ".tar.gz"))
+       (sha256
+        (base32
+         "0b9rd161b3mmiwd7nx1v599yh9sp07mlfwac65sjy9qn1l0gd1z9"))))
+    (build-system python-build-system)
+    (native-inputs
+     `(("python-nose" ,python-nose)
+       ("python-setuptools" ,python-setuptools)))
+    (inputs
+     `(("python-py-bcrypt" ,python-py-bcrypt)))
+    (arguments
+     `(#:phases
+       (alist-cons-before
+        'check 'set-PYTHON_EGG_CACHE
+        ;; some tests require access to "$HOME/.cython"
+        (lambda* _ (setenv "PYTHON_EGG_CACHE" "/tmp"))
+         %standard-phases)))
+    (home-page "https://bitbucket.org/ecollins/passlib")
+    (synopsis
+     "Comprehensive password hashing framework")
+    (description
+     "Passlib is a password hashing library for Python 2 & 3, which provides
+cross-platform implementations of over 30 password hashing algorithms, as well
+as a framework for managing existing password hashes.  It's designed to be
+useful for a wide range of tasks, from verifying a hash found in /etc/shadow,
+to providing full-strength password hashing for multi-user application.")
+    (license bsd-3)))
+
+(define-public python2-passlib
+  (package-with-python2 python-passlib))
+
 (define-public python-py-bcrypt
   (package
     (name "python-py-bcrypt")
-- 
2.4.3


[-- Attachment #9: 0008-gnu-Add-python2-ansible.patch --]
[-- Type: text/x-patch, Size: 2270 bytes --]

From 46a5cde5cbace931df0fb23283ae17d76165b82f Mon Sep 17 00:00:00 2001
From: Eric Dvorsak <yenda1@gmail.com>
Date: Sat, 25 Jul 2015 21:40:24 +0200
Subject: [PATCH 8/8] gnu: Add python2-ansible.

* gnu/packages/python.scm (python2-ansible): New variable.
---
 gnu/packages/python.scm | 40 ++++++++++++++++++++++++++++++++++++++++
 1 file changed, 40 insertions(+)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 5d18852..5d2f283 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -298,6 +298,46 @@ pidof, tty, taskset, pmap.")
 (define-public python2-psutil
   (package-with-python2 python-psutil))
 
+(define-public python2-ansible
+  (package
+    (name "python2-ansible")
+    (version "1.9.2")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append
+             "https://pypi.python.org/packages/source/a/ansible/ansible-"
+             version
+             ".tar.gz"))
+       (sha256
+        (base32
+         "007fzgsqaahb0y4gjdxxmir9kcni7wph2z14jhqgpz88idrz8pn2"))))
+    (build-system python-build-system)
+    (native-inputs
+     `(("python2-setuptools" ,python2-setuptools)
+       ("python2-pycrypto" ,python2-pycrypto)
+       ("python2-httplib2" ,python2-httplib2)
+       ("python2-passlib" ,python2-passlib)
+       ("python2-nose" ,python2-nose)
+       ("python2-mock" ,python2-mock)
+       ("python2-jinja2" ,python2-jinja2)
+       ("python2-pyyaml" ,python2-pyyaml)
+       ("python2-paramiko" ,python2-paramiko)))
+    (inputs
+     `(("python2-pycrypto" ,python2-pycrypto)
+       ("python2-jinja2" ,python2-jinja2)
+       ("python2-pyyaml" ,python2-pyyaml)
+       ("python2-paramiko" ,python2-paramiko)))
+    (arguments
+     `(#:python ,python-2)) ; incompatible with Python 3
+    (home-page "http://ansible.com/")
+    (synopsis "Radically simple IT automation")
+    (description "Ansible is a radically simple IT automation system.  It
+handles configuration-management, application deployment, cloud provisioning,
+ad-hoc task-execution, and multinode orchestration - including trivializing
+things like zero downtime rolling updates with load balancers.")
+    (license gpl3+)))
+
 (define-public python-passlib
   (package
     (name "python-passlib")
-- 
2.4.3


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

* Re: [PATCH] python2-ansible, python-ccm and dependencies
  2015-07-26 12:05       ` Eric Dvorsak
@ 2015-07-29  9:51         ` Alex Kost
  2015-07-31  8:06           ` Alex Kost
  0 siblings, 1 reply; 8+ messages in thread
From: Alex Kost @ 2015-07-29  9:51 UTC (permalink / raw)
  To: Eric Dvorsak; +Cc: guix-devel

Eric Dvorsak (2015-07-26 15:05 +0300) wrote:

> Ok I have made all the changes you recommended. Thank you for your
> help.

Thanks for making the packages.  I'm going to push these patches in a
day or two, so if someone has comments, this is the last chance.

I also checked that "python-paramiko" is under lgpl2.1+.  And that
"python-py-bcrypt" is multi-licensed (isc bsd-3 bsd-4).  I'll fix it
before pushing the patches.

-- 
Alex

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

* Re: [PATCH] python2-ansible, python-ccm and dependencies
  2015-07-29  9:51         ` Alex Kost
@ 2015-07-31  8:06           ` Alex Kost
  0 siblings, 0 replies; 8+ messages in thread
From: Alex Kost @ 2015-07-31  8:06 UTC (permalink / raw)
  To: Eric Dvorsak; +Cc: guix-devel

Alex Kost (2015-07-29 12:51 +0300) wrote:

> Eric Dvorsak (2015-07-26 15:05 +0300) wrote:
>
>> Ok I have made all the changes you recommended. Thank you for your
>> help.
>
> Thanks for making the packages.  I'm going to push these patches in a
> day or two, so if someone has comments, this is the last chance.

Pushed.

-- 
Alex

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

end of thread, other threads:[~2015-07-31  8:07 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-07-24 16:21 [PATCH] python2-ansible, python-ccm and dependencies Eric Dvorsak
2015-07-25  9:28 ` Alex Kost
2015-07-25 10:07 ` Ricardo Wurmus
2015-07-25 19:58   ` Eric Dvorsak
2015-07-26  9:56     ` Alex Kost
2015-07-26 12:05       ` Eric Dvorsak
2015-07-29  9:51         ` Alex Kost
2015-07-31  8:06           ` Alex Kost

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).