unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Josh Marshall <Josh.Marshall@jax.org>
To: Leo Famulari <leo@famulari.name>
Cc: "40195@debbugs.gnu.org" <40195@debbugs.gnu.org>
Subject: [bug#40195] [EXTERNAL]Re: [bug#40195] Add Docusign python API module as a package
Date: Tue, 24 Mar 2020 17:46:43 +0000	[thread overview]
Message-ID: <BL0PR06MB46733D434B8858B35F493798E9F10@BL0PR06MB4673.namprd06.prod.outlook.com> (raw)
In-Reply-To: <20200323193906.GA30452@jasmine.lan>

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

The tarballs that GitHub automatically generates per-tag (named like
'v3.0.0.tar.gz') do sometimes change, which breaks our packaging. So we
should package this either from the Git tag or from PyPI:
> Done

I think we should take the PyPi name as canonical, so as a Python
library, this Guix package should be called 'python-docusign-esign'.
> Done

Why are the tests skipped? Can you add a code comment? Even just "No
test suite" if that is the case.
> Done

Make sure to lint the package. You may need to do it in a Guix
development environment; something like this should work:
> I couldn't figure the command -- thanks.  Also done

Can you send a revised patch? 
> See attached

Also, does this integrate with any Guix packages?
> No?
---

The information in this email, including attachments, may be confidential and is intended solely for the addressee(s). If you believe you received this email by mistake, please notify the sender by return email as soon as possible.

[-- Attachment #2: 0001-Adding-Docusign-python-API-module-as-a-package.patch --]
[-- Type: application/octet-stream, Size: 2018 bytes --]

From 5eb5f5e710994d1fa1c6115ba020201182d81605 Mon Sep 17 00:00:00 2001
From: Josh Marshall <josh.marshall@jax.org>
Date: Mon, 23 Mar 2020 10:19:43 -0400
Subject: [PATCH 1/2] Adding Docusign python API module as a package.

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

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 8271e1ff7e..de8a2b82aa 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 Josh Marshall <joshua.r.marshall.1991@gmail.com>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -18235,3 +18236,30 @@ sequences.")
 
 (define-public python2-fuzzywuzzy
   (package-with-python2 python-fuzzywuzzy))
+
+
+(define-public python-docusign
+  (package
+    (name "python-docusign")
+    (version "3.0.0")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append "https://github.com/docusign/docusign-python-client/archive/v" version ".tar.gz"))
+              (sha256
+		(base32
+ 		  "0nq9g7dbl4r2xfh76612sa226psmi3isnam7hvmar09wspy1m8a4"))))
+    (build-system python-build-system)
+    (arguments `(#:tests? #f))
+    (propagated-inputs
+      `(("python-certifi", python-certifi)
+        ("python-six", python-six)
+        ("python-dateutil", python-dateutil)
+        ("python-urllib3", python-urllib3)
+        ("python-pyjwt", python-pyjwt)
+        ("python-cryptography", python-cryptography)
+        ("python-nose", python-nose)))
+    (synopsis "The Official DocuSign Python Client")
+    (description "The Official DocuSign Python Client Library used to interact with the eSign REST API. Send, sign, and approve documents using this client.")
+    (home-page "https://www.docusign.com/devcenter")
+    (license license:expat)))
+
-- 
2.25.1


[-- Attachment #3: 0002-Making-reccomended-changes.patch --]
[-- Type: application/octet-stream, Size: 2116 bytes --]

From fc33554b4013d3d8b4497f55146dce476598fb19 Mon Sep 17 00:00:00 2001
From: Josh Marshall <josh.marshall@jax.org>
Date: Tue, 24 Mar 2020 13:01:03 -0400
Subject: [PATCH 2/2] Making reccomended changes.

---
 gnu/packages/python-xyz.scm | 18 +++++++++++-------
 1 file changed, 11 insertions(+), 7 deletions(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index de8a2b82aa..979e4b5445 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -18240,15 +18240,18 @@ sequences.")
 
 (define-public python-docusign
   (package
-    (name "python-docusign")
-    (version "3.0.0")
+    (name "python-docusign-esign")
+    (version "3.1.0")
     (source (origin
-              (method url-fetch)
-              (uri (string-append "https://github.com/docusign/docusign-python-client/archive/v" version ".tar.gz"))
+              (method git-fetch)
+              (uri (git-reference
+                     (url "https://github.com/docusign/docusign-python-client")
+                     (commit "496cad818e1fc962babdcb3fe07ba9ff7d08d03c")))
               (sha256
-		(base32
- 		  "0nq9g7dbl4r2xfh76612sa226psmi3isnam7hvmar09wspy1m8a4"))))
+                (base32
+                  "0nq9g7dbl4r2xfh76612sa226psmi3isnam7hvmar09wspy1m8a4"))))
     (build-system python-build-system)
+    ; Testing requires undocumented setup changes, and so testing is disabled here.
     (arguments `(#:tests? #f))
     (propagated-inputs
       `(("python-certifi", python-certifi)
@@ -18259,7 +18262,8 @@ sequences.")
         ("python-cryptography", python-cryptography)
         ("python-nose", python-nose)))
     (synopsis "The Official DocuSign Python Client")
-    (description "The Official DocuSign Python Client Library used to interact with the eSign REST API. Send, sign, and approve documents using this client.")
+    (description "The Official DocuSign Python Client Library used to interact
+ with the eSign REST API.  Send, sign, and approve documents using this client.")
     (home-page "https://www.docusign.com/devcenter")
     (license license:expat)))
 
-- 
2.25.1


  reply	other threads:[~2020-03-24 17:47 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-23 14:26 [bug#40195] Add Docusign python API module as a package Josh Marshall
2020-03-23 19:39 ` Leo Famulari
2020-03-24 17:46   ` Josh Marshall [this message]
2020-03-24 19:39     ` [bug#40195] [EXTERNAL]Re: " Leo Famulari
2020-03-24 21:06       ` Josh Marshall
2020-03-24 21:20         ` Leo Famulari

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=BL0PR06MB46733D434B8858B35F493798E9F10@BL0PR06MB4673.namprd06.prod.outlook.com \
    --to=josh.marshall@jax.org \
    --cc=40195@debbugs.gnu.org \
    --cc=leo@famulari.name \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).