Subject: bug#25808: [PATCH 1/8] gnu: Add python-attrs.

From: Troy Sankey <[email-masked]>
Date: Mon, 20 Feb 2017 01:37:35 -0500

* gnu/packages/python.scm (python-attrs, python2-attrs): New variables.
---
 gnu/packages/python.scm | 24 +++++++++++++++++++++++-
 1 file changed, 23 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 3e59b5892..e3904624c 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -22,7 +22,7 @@
 ;;; Copyright © 2016 Hartmut Goebel <[email-masked]>
 ;;; Copyright © 2016 Daniel Pimentel <[email-masked]>
 ;;; Copyright © 2016 Sou Bunnbu <[email-masked]>
-;;; Copyright © 2016 Troy Sankey <[email-masked]>
+;;; Copyright © 2016, 2017 Troy Sankey <[email-masked]>
 ;;; Copyright © 2016, 2017 ng0 <[email-masked]>
 ;;; Copyright © 2016 Dylan Jeffers <sapientech@[email-masked]>
 ;;; Copyright © 2016 David Craven <[email-masked]>
@@ -12708,3 +12708,25 @@ specified to apply on the key before comparison (e.g. @code{string.lower})).")
 Python.  It is based on Parsing Expression Grammars, PEG.  With pyPEG you can
 parse many formal languages.")
     (license license:gpl2)))
+
+(define-public python-attrs
+  (package
+    (name "python-attrs")
+    (version "16.3.0")
+    (source
+      (origin
+        (method url-fetch)
+          (uri (pypi-uri "attrs" version))
+        (sha256
+          (base32
+            "1k1w8xg7mbd9r8624irnwnzlf3g8lqymba2sw6xz6diyf9vk2840"))))
+    (build-system python-build-system)
+    (home-page "https://github.com/python-attrs/attrs/")
+    (synopsis "Attributes Without Boilerplate")
+    (description "@code{attrs} is an MIT-licensed Python package with class
+decorators that ease the chores of implementing the most common
+attribute-related object protocols.")
+    (license license:expat)))
+
+(define-public python2-attrs
+  (package-with-python2 python-attrs))
-- 
2.11.1