From ff6429affadf259299f4583a391161f0743788e2 Mon Sep 17 00:00:00 2001 From: Muriithi Frederick Muriuki Date: Thu, 20 Dec 2018 16:02:59 +0300 Subject: Comment out problematic packages * Comment out python-pygit2 which doesn't seem to be used, and fails to build. * Comment out python-ipython which might be needed (not sure), but fails to build. --- gn/packages/edash.scm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gn/packages/edash.scm b/gn/packages/edash.scm index 6324d3a..79e4b22 100644 --- a/gn/packages/edash.scm +++ b/gn/packages/edash.scm @@ -467,7 +467,7 @@ with the Specification.") ("python-jinja2" ,python-jinja2) ("python-markdown" ,python-markdown) ("python-misaka" ,python-misaka) - ("python-pygit2" ,python-pygit2) + ;; ("python-pygit2" ,python-pygit2) ("web-bootstrap" ,web-bootstrap) ;;("sassc" ,sassc) ("python-boto3" ,python-boto3) @@ -480,7 +480,9 @@ with the Specification.") ("python-flask-mail" ,python-flask-mail) ("python-flask-wtf" ,python-flask-wtf) ("sqlite" ,sqlite) - ("python-ipython" ,python-ipython) + ;; ("python-ipython" ,python-ipython) + ("python-swagger-ui-bundle" ,python-swagger-ui-bundle) + ("python-connexion" ,python-connexion) )) (arguments `(#:modules ((guix build utils)) -- cgit v1.2.3 From fae40327cea346829a76615c03da6d337d51e851 Mon Sep 17 00:00:00 2001 From: Muriithi Frederick Muriuki Date: Thu, 20 Dec 2018 16:16:02 +0300 Subject: Add glibc-locales as dependency * python-click is very specific about the locales, and since it is a dependency, ensure that the glibc-locales package is linked to, to prevent the locales from being removed on `guix gc` or when a user runs `guix package -u` on their main profile. --- gn/packages/edash.scm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gn/packages/edash.scm b/gn/packages/edash.scm index 79e4b22..f6a3321 100644 --- a/gn/packages/edash.scm +++ b/gn/packages/edash.scm @@ -5,6 +5,7 @@ #:use-module (guix build-system trivial) #:use-module (guix build-system python) #:use-module (gnu packages web) + #:use-module (gnu packages base) #:use-module (gnu packages python) #:use-module (gnu packages python-web) #:use-module (gnu packages python-crypto) @@ -460,6 +461,7 @@ with the Specification.") ;;(inputs `(("sassc" ,sassc))) (propagated-inputs `(("python" ,python) + ("glibc-locales" ,glibc-locales) ("gunicorn" ,gunicorn) ("python-wrapper" ,python-wrapper) ("python-elasticsearch" ,python-elasticsearch) -- cgit v1.2.3 From 0e138a173992daae0697699d4e2b68cf17104091 Mon Sep 17 00:00:00 2001 From: pjotrp Date: Wed, 2 Jan 2019 12:26:52 +0000 Subject: CWL --- gn/packages/cwl.scm | 61 +++++++++++++++++++++++++++++++++++++++++--------- gn/packages/python.scm | 7 +++--- 2 files changed, 53 insertions(+), 15 deletions(-) diff --git a/gn/packages/cwl.scm b/gn/packages/cwl.scm index 5a01dbf..245af84 100644 --- a/gn/packages/cwl.scm +++ b/gn/packages/cwl.scm @@ -4,6 +4,7 @@ #:use-module ((guix licenses) #:prefix license:) #:use-module (gnu packages) #:use-module (gnu packages check) + #:use-module (gnu packages databases) #:use-module (gnu packages python) #:use-module (gnu packages python-web) #:use-module (gnu packages node) @@ -22,7 +23,7 @@ #:use-module (srfi srfi-1)) (define-public cwltool ; guix: needs work - (let ((commit "e12d36b6efbc5d4a6ff7b4fbfd7387bff8f72727")) + (let ((commit "15539fba76993f951af9eba913bea6d677c74005")) (package (name "cwltool") (version "1.0.20181012180214") @@ -35,12 +36,12 @@ ; ".tar.gz")) (method git-fetch) (uri (git-reference - (url "https://github.com/genenetwork/cwltool.git") + (url "https://github.com/genenetwork/cwltool.git") ;; my repo for Python 3.7 (commit commit))) - (file-name (git-file-name name version)) + (file-name (git-file-name name (string-append version "-" (string-take commit 7)))) (sha256 (base32 - "1zhba1hfizrw3bxfmhpjds92pj79hyyv5k7sglw24z52kg1in67p")))) + "1qwfa82car7477sy0cb5bj4964w7zq7dcw2bdcls6c2i9qdp0586")))) (build-system python-build-system) (propagated-inputs ; a lot of these are used for testing `(("git" ,git) @@ -66,7 +67,6 @@ ("python-schema-salad" ,python-schema-salad) ("python-html5lib" ,python-html5lib) ("python-rdflib-jsonld" ,python-rdflib-jsonld) - ("python-typing-extensions" ,python-typing-extensions) ("python-scandir" ,python-scandir) ("python-psutil" ,python-psutil) )) @@ -88,17 +88,56 @@ "Common workflow language reference implementation") (license license:asl2.0)))) +(define-public python-cachecontrol + (package + (name "python-cachecontrol") + (version "0.11.7") + (source + (origin + (method url-fetch) + ;; Pypi does not have tests. + (uri (string-append + "https://github.com/ionrock/cachecontrol/archive/v" + version ".tar.gz")) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "1yfhwihx1b1xjsx0r19va2m0r2s91im03x4d7pwzp87368f2lkkp")))) + (build-system python-build-system) + (arguments + `(#:tests? #f)) ;; Recent version breaks on cherrypy + (native-inputs + `(("python-pytest" ,python-pytest) + ("python-redis" ,python-redis) + ("python-webtest" ,python-webtest) + ("python-mock" ,python-mock))) + (propagated-inputs + `(("python-requests" ,python-requests) + ("python-lockfile" ,python-lockfile))) + (home-page "https://github.com/ionrock/cachecontrol") + (synopsis "The httplib2 caching algorithms for use with requests") + (description "CacheControl is a port of the caching algorithms in +@code{httplib2} for use with @code{requests} session objects.") + (license license:asl2.0))) + + (define-public python-schema-salad + (let ((commit "eb85c3d49b99b7643e8a12248e2dc05504910c1e")) (package (name "python-schema-salad") (version "3.0.20181129082112") (source (origin - (method url-fetch) - (uri (pypi-uri "schema-salad" version)) - (sha256 - (base32 - "1xg70v82q053vz1sg8sc99alnkrm2kk05w6698vgmngl1767sk97")))) + ; (method url-fetch) + ; (uri (pypi-uri "schema-salad" version)) + (method git-fetch) + (uri (git-reference + (url "https://github.com/genenetwork/schema_salad.git") ;; my repo for Python3.7 + (commit commit))) + (file-name (git-file-name name (string-append version "-" (string-take commit 7)))) + (sha256 + (base32 + "174f224zzjr0nbjlq3ypciyfijnibasysrgjswvx8yhan2dizlhr")))) (build-system python-build-system) (arguments `(#:tests? #f)) ;; CWL includes no tests. (inputs @@ -119,7 +158,7 @@ "Schema Annotations for Linked Avro Data (SALAD)") (description "Schema Annotations for Linked Avro Data (SALAD)") - (license license:asl2.0))) + (license license:asl2.0)))) ; (define-public python2-schema-salad ; (package-with-python2 python-schema-salad)) diff --git a/gn/packages/python.scm b/gn/packages/python.scm index 75f7cab..4cefe84 100644 --- a/gn/packages/python.scm +++ b/gn/packages/python.scm @@ -379,7 +379,7 @@ functions.") (define-public python-setuptools (package (name "python-setuptools") - (version "40.6.2") + (version "40.6.0") (source (origin (method url-fetch) @@ -753,9 +753,8 @@ the older versions.") (base32 "04h8brrbbx151dfa2cvvlnxgmb5wa00mhd2z7nd20s8kyibfkq1p")))) (build-system python-build-system) - (propagated-inputs - `(("python-version" ,python-version) - ("python-typing" ,python-typing))) + (inputs + `(("python-version" ,python-version))) (home-page "http://www.mypy-lang.org/") (synopsis "Experimental type system extensions for programs checked with the mypy typechecker.") -- cgit v1.2.3 From b9413593393f4cf904f9a4ae97aeb08989257303 Mon Sep 17 00:00:00 2001 From: Muriithi Frederick Muriuki Date: Fri, 18 Jan 2019 12:03:22 +0300 Subject: gn: Add python-schedule as dependency * gn/packages/edash.scm (python-schedule): New dependency. --- gn/packages/edash.scm | 1 + 1 file changed, 1 insertion(+) diff --git a/gn/packages/edash.scm b/gn/packages/edash.scm index f6a3321..4d3f557 100644 --- a/gn/packages/edash.scm +++ b/gn/packages/edash.scm @@ -485,6 +485,7 @@ with the Specification.") ;; ("python-ipython" ,python-ipython) ("python-swagger-ui-bundle" ,python-swagger-ui-bundle) ("python-connexion" ,python-connexion) + ("python-schedule" ,python-schedule) )) (arguments `(#:modules ((guix build utils)) -- cgit v1.2.3 From 0ea823c1a46ee72c8042d1587682cdd2e57ed2c1 Mon Sep 17 00:00:00 2001 From: Muriithi Frederick Muriuki Date: Mon, 21 Jan 2019 08:24:51 +0300 Subject: gn: Add new package * gn/packages/edash.scm (python-flask-cors): New variable. --- gn/packages/edash.scm | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/gn/packages/edash.scm b/gn/packages/edash.scm index 4d3f557..58b9fec 100644 --- a/gn/packages/edash.scm +++ b/gn/packages/edash.scm @@ -8,6 +8,7 @@ #:use-module (gnu packages base) #:use-module (gnu packages python) #:use-module (gnu packages python-web) + #:use-module (gnu packages python-xyz) #:use-module (gnu packages python-crypto) #:use-module (gnu packages compression) #:use-module (gnu packages time) @@ -443,6 +444,30 @@ with the Specification.") "Connexion - API first applications with OpenAPI/Swagger and Flask") (license license:asl2.0))) +(define-public python-flask-cors + (package + (name "python-flask-cors") + (version "3.0.7") + (source + (origin + (method url-fetch) + (uri (pypi-uri "Flask-Cors" version)) + (sha256 + (base32 + "1v6gq4vjgyxi8q8lxawpdfhq01adb4bznnabp08ks5nzbwibz43y")))) + (build-system python-build-system) + (inputs + `(("python-flask" ,python-flask) + ("python-six" ,python-six) + ("python-nose" ,python-nose))) + (home-page + "https://github.com/corydolphin/flask-cors") + (synopsis + "A Flask extension adding a decorator for CORS support") + (description + "A Flask extension adding a decorator for CORS support") + (license license:expat))) + (define-public edash (let ((md5 "93e745e9c")) (package -- cgit v1.2.3 From 4cb594f75e7823645f39897bd8d8dfcaea51f04f Mon Sep 17 00:00:00 2001 From: Muriithi Frederick Muriuki Date: Mon, 21 Jan 2019 08:59:26 +0300 Subject: gn: Add dependency * gn/packages/edash (python-flask-cors): Add dependency to edash. --- gn/packages/edash.scm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gn/packages/edash.scm b/gn/packages/edash.scm index 58b9fec..07f80f0 100644 --- a/gn/packages/edash.scm +++ b/gn/packages/edash.scm @@ -511,7 +511,7 @@ with the Specification.") ("python-swagger-ui-bundle" ,python-swagger-ui-bundle) ("python-connexion" ,python-connexion) ("python-schedule" ,python-schedule) - )) + ("python-flask-cors" ,python-flask-cors))) (arguments `(#:modules ((guix build utils)) #:builder -- cgit v1.2.3 From 9b8bb5bf25b5dd375587c11377aa94d46295e868 Mon Sep 17 00:00:00 2001 From: Muriithi Frederick Muriuki Date: Mon, 21 Jan 2019 09:11:41 +0300 Subject: Add module * python2-eventlet moved to gnu/packages/python-xyz.scm --- gn/packages/python.scm | 1 + 1 file changed, 1 insertion(+) diff --git a/gn/packages/python.scm b/gn/packages/python.scm index 4cefe84..651a635 100644 --- a/gn/packages/python.scm +++ b/gn/packages/python.scm @@ -37,6 +37,7 @@ #:use-module (gnu packages web) #:use-module (gnu packages xml) #:use-module (gnu packages xorg) + #:use-module (gnu packages python-xyz) #:use-module (guix packages) #:use-module (guix download) #:use-module (guix git-download) -- cgit v1.2.3 From 7a5ba50f1df5473bf43abeae34648ee39698a6b1 Mon Sep 17 00:00:00 2001 From: Muriithi Frederick Muriuki Date: Mon, 21 Jan 2019 10:07:56 +0300 Subject: Use sqlite module. --- gn/packages/edash.scm | 1 + 1 file changed, 1 insertion(+) diff --git a/gn/packages/edash.scm b/gn/packages/edash.scm index 07f80f0..8d23a08 100644 --- a/gn/packages/edash.scm +++ b/gn/packages/edash.scm @@ -15,6 +15,7 @@ #:use-module (gnu packages databases) #:use-module (gnu packages check) #:use-module (gn packages web) + #:use-module (gnu packages sqlite) #:use-module (gn packages python)) (define-public python-s3transfer-0.1.13 -- cgit v1.2.3