about summary refs log tree commit diff
path: root/gn/packages/python.scm
diff options
context:
space:
mode:
Diffstat (limited to 'gn/packages/python.scm')
-rw-r--r--gn/packages/python.scm180
1 files changed, 133 insertions, 47 deletions
diff --git a/gn/packages/python.scm b/gn/packages/python.scm
index 226f179..cd017c0 100644
--- a/gn/packages/python.scm
+++ b/gn/packages/python.scm
@@ -12,6 +12,7 @@
   #:use-module (gnu packages pcre)
   #:use-module (gnu packages python)
   #:use-module (gnu packages python-build)
+  #:use-module (gnu packages python-check)
   #:use-module (gnu packages python-compression)
   #:use-module (gnu packages python-crypto)
   #:use-module (gnu packages python-science)
@@ -102,53 +103,6 @@ including wrappers to graphical libraries, as well as R-like structures and
 functions.")
     (license license:gpl3+)))
 
-
-(define-public python-plotly ; guix candidate
-   ; python-plotly, python-requests, python-pytz
-(package
-  (name "python-plotly")
-  (version "2.1.0")
-  (source
-    (origin
-      (method url-fetch)
-      (uri (pypi-uri "plotly" version))
-      (sha256
-        (base32
-          "1r4y9l5z62sqyd2r205vchlvlc1f7dcgjyagjkxiwywh27f9js7z"))))
-  (build-system python-build-system)
-  (arguments `(#:tests? #f)) ;; No tests.
-  (home-page "https://plot.ly/python/")
-  (synopsis
-    "Python plotting library for collaborative, interactive, publication-quality graphs.")
-  (description
-    "Python plotting library for collaborative, interactive, publication-quality graphs.")
-  (license license:expat))
-)
-
-(define-public python-plotly-3.2.1
-  (package
-    (inherit python-plotly)
-    (name "python-plotly")
-    (version "3.2.1")
-    (source
-      (origin
-        (method url-fetch)
-        (uri (pypi-uri "plotly" version))
-        (sha256
-         (base32
-          "1ay1plgsckfi7fddl99kvbcx5nifh48ahvszkqvb4d7r008m8sxk"))))
-    (build-system python-build-system)
-    (propagated-inputs
-     `(("python-decorator" ,python-decorator)
-       ("python-nbformat" ,python-nbformat)
-       ("python-pytz" ,python-pytz)
-       ("python-requests" ,python-requests)
-       ("python-retrying" ,python-retrying)
-       ("python-six" ,python-six)))))
-
-(define-public python2-plotly-3.2.1
-  (package-with-python2 python-plotly-3.2.1))
-
 (define-public python-subprocess32 ; guix candidate
   (package
     (name "python-subprocess32")
@@ -196,6 +150,20 @@ functions.")
 (define-public python2-inotify
   (package-with-python2 python-inotify))
 
+(define-public python2-flask
+  (let ((base (package-with-python2 python-flask)))
+    (package
+      (inherit base)
+      (arguments
+       `(#:tests? #f)))))
+
+(define-public python2-werkzeug
+  (let ((base (package-with-python2 python-werkzeug)))
+    (package
+      (inherit base)
+      (arguments
+       `(#:tests? #f)))))
+
 (define-public python2-flask-sqlalchemy
   (package-with-python2 python-flask-sqlalchemy))
 
@@ -1606,3 +1574,121 @@ sorted order.")
     (description
      "Socket.IO integration for Flask applications")
     (license license:expat)))
+
+(define-public python-varint
+  (package
+    (name "python-varint")
+    (version "1.0.2")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "varint" version))
+       (sha256
+        (base32
+         "19ac46adalgva1chlh0rxv6cinpikxfd92kabbbfjpmcfwiw1v56"))))
+    (build-system python-build-system)
+    (home-page
+     "http://github.com/fmoo/python-varint")
+    (synopsis "Simple python varint implementation")
+    (description
+     "Simple python varint implementation")
+    (license license:expat)))
+
+(define-public python-multiaddr
+  (package
+    (name "python-multiaddr")
+    (version "0.0.9")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "multiaddr" version))
+       (sha256
+        (base32
+         "1kqfmcbv8plpicbygwpdljin7n82iyxklc0w1ywxbhzdi58nkcih"))))
+    (build-system python-build-system)
+    (native-inputs
+     `(("python-pytest" ,python-pytest)
+       ("python-pytest-runner" ,python-pytest-runner)))
+    (propagated-inputs
+     `(("python-base58" ,python-base58)
+       ("python-idna" ,python-idna)
+       ("python-netaddr" ,python-netaddr)
+       ("python-six" ,python-six)
+       ("python-varint" ,python-varint)))
+    (home-page
+     "https://github.com/multiformats/py-multiaddr")
+    (synopsis
+     "Python implementation of jbenet's multiaddr")
+    (description
+     "Python implementation of jbenet's multiaddr")
+    (license license:expat)))
+
+(define-public python-ipfshttpclient
+  (package
+    (name "python-ipfshttpclient")
+    (version "0.7.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "ipfshttpclient" version))
+       (sha256
+        (base32
+         "14rnqk61fqa6c1ql412q723g7spgpv2pch96h7p8gb632hy07cgy"))))
+    (build-system python-build-system)
+    (arguments
+     `(#:phases
+       (modify-phases %standard-phases
+         (add-after 'unpack 'bumpup-max-version
+           (lambda _
+             (substitute* "ipfshttpclient/client/__init__.py"
+               (("VERSION_MAXIMUM   = \"0.7.0\"")
+                "VERSION_MAXIMUM   = \"0.8.1\""))
+             #t)))))
+    (native-inputs
+     `(("python-pytest" ,python-pytest)
+       ("python-pytest-runner" ,python-pytest-runner)))
+    (propagated-inputs
+     `(("python-httpx" ,python-httpx)
+       ("python-multiaddr" ,python-multiaddr)
+       ("python-requests" ,python-requests)))
+    (home-page
+     "https://ipfs.io/ipns/12D3KooWEqnTdgqHnkkwarSrJjeMP2ZJiADWLYADaNvUb6SQNyPF/")
+    (synopsis "Python IPFS HTTP CLIENT library")
+    (description "Python IPFS HTTP CLIENT library")
+    (license license:expat)))
+
+;; TODO: Upstream
+(define-public python-sqlalchemy-stubs
+  (package
+    (name "python-sqlalchemy-stubs")
+    (version "0.4")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "sqlalchemy-stubs" version))
+       (sha256
+        (base32
+         "1bppjmv7v7m0q8gwg791pgxbx4ay7mna0zq204pn9vw28kfxcrf6"))))
+    (build-system python-build-system)
+    (propagated-inputs
+     `(("python-mypy" ,python-mypy)
+       ("python-typing-extensions"
+        ,python-typing-extensions)))
+    (home-page
+     "https://github.com/dropbox/sqlalchemy-stubs")
+    (synopsis "SQLAlchemy stubs and mypy plugin")
+    (description "SQLAlchemy stubs and mypy plugin")
+    (license license:expat)))
+
+(define-public python-rpy2-next
+  (package
+    (inherit python-rpy2)
+    (name "python-rpy2-next")
+    (version "3.4.4")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "rpy2" version))
+       (sha256
+        (base32
+         "0l4fvm58fyz044hxpaw3a8w1nlki1n8iikrg9bdd7imz04kqd671"))))))