* [bug#37234] [PATCH 02/21] gnu: Add python-databricks-cli.
2019-08-30 14:25 ` [bug#37234] [PATCH 01/21] gnu: Add python-gunicorn Marius Bakke
@ 2019-08-30 14:25 ` Marius Bakke
2019-08-30 14:25 ` [bug#37234] [PATCH 03/21] gnu: Add python-gorilla Marius Bakke
` (18 subsequent siblings)
19 siblings, 0 replies; 25+ messages in thread
From: Marius Bakke @ 2019-08-30 14:25 UTC (permalink / raw)
To: 37234
* gnu/packages/python-web.scm (python-databricks-cli): New public variable.
---
gnu/packages/python-web.scm | 40 +++++++++++++++++++++++++++++++++++++
1 file changed, 40 insertions(+)
diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index 3ed0c6dd16..8d11e9890f 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -740,6 +740,46 @@ another XPath engine to find the matching elements in an XML or HTML document.")
(define-public python2-cssselect
(package-with-python2 python-cssselect))
+(define-public python-databricks-cli
+ (package
+ (name "python-databricks-cli")
+ (version "0.8.7")
+ (home-page "https://github.com/databricks/databricks-cli")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference (url home-page) (commit version)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "0wr373kh13gns007g8fm6c4kdrg2xnwk40fkdnlfx7l0yzjbgqy3"))))
+ (build-system python-build-system)
+ (arguments
+ `(#:phases (modify-phases %standard-phases
+ (replace 'check
+ (lambda _
+ (setenv "PYTHONPATH"
+ (string-append "./build/lib:"
+ (getenv "PYTHONPATH")))
+ (invoke "pytest" "tests" "-vv"))))))
+ (native-inputs
+ `(;; For tests.
+ ("python-decorator" ,python-decorator)
+ ("python-mock" ,python-mock)
+ ("python-pytest" ,python-pytest)
+ ("python-requests-mock" ,python-requests-mock)))
+ (propagated-inputs
+ `(("python-click" ,python-click)
+ ("python-configparser" ,python-configparser)
+ ("python-requests" ,python-requests)
+ ("python-six" ,python-six)
+ ("python-tabulate" ,python-tabulate)))
+ (synopsis "Command line interface for Databricks")
+ (description
+ "The Databricks Command Line Interface is a tool which provides an easy
+to use interface to the Databricks platform. The CLI is built on top of the
+Databricks REST APIs.")
+ (license license:asl2.0)))
+
(define-public python-openid-cla
(package
(name "python-openid-cla")
--
2.22.1
^ permalink raw reply related [flat|nested] 25+ messages in thread
* [bug#37234] [PATCH 03/21] gnu: Add python-gorilla.
2019-08-30 14:25 ` [bug#37234] [PATCH 01/21] gnu: Add python-gunicorn Marius Bakke
2019-08-30 14:25 ` [bug#37234] [PATCH 02/21] gnu: Add python-databricks-cli Marius Bakke
@ 2019-08-30 14:25 ` Marius Bakke
2019-08-30 14:25 ` [bug#37234] [PATCH 04/21] gnu: Add python-querystring-parser Marius Bakke
` (17 subsequent siblings)
19 siblings, 0 replies; 25+ messages in thread
From: Marius Bakke @ 2019-08-30 14:25 UTC (permalink / raw)
To: 37234
* gnu/packages/python-xyz.scm (python-gorilla): New public variable.
---
gnu/packages/python-xyz.scm | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index d5fcc5668c..7e874480e3 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -6825,6 +6825,26 @@ should be stored on various operating systems.")
(define-public python2-appdirs
(package-with-python2 python-appdirs))
+(define-public python-gorilla
+ (package
+ (name "python-gorilla")
+ (version "0.3.0")
+ (source (origin
+ (method url-fetch)
+ (uri (pypi-uri "gorilla" version))
+ (sha256
+ (base32
+ "0b40blcp6fih4nvqbilra4qw1dfccv1ahjmr41ac4d9rjadqkcpy"))))
+ (build-system python-build-system)
+ (home-page "https://github.com/christophercrouzet/gorilla")
+ (synopsis "Convenient monkey patching with Python")
+ (description
+ "Gorilla is a Python library that provides a convenient approach to
+monkey patching. Monkey patching is the process of modifying module and
+class attributes at runtime with the purpose of replacing or extending
+third-party code.")
+ (license license:expat)))
+
(define-public python-llfuse
(package
(name "python-llfuse")
--
2.22.1
^ permalink raw reply related [flat|nested] 25+ messages in thread
* [bug#37234] [PATCH 04/21] gnu: Add python-querystring-parser.
2019-08-30 14:25 ` [bug#37234] [PATCH 01/21] gnu: Add python-gunicorn Marius Bakke
2019-08-30 14:25 ` [bug#37234] [PATCH 02/21] gnu: Add python-databricks-cli Marius Bakke
2019-08-30 14:25 ` [bug#37234] [PATCH 03/21] gnu: Add python-gorilla Marius Bakke
@ 2019-08-30 14:25 ` Marius Bakke
2019-08-30 14:25 ` [bug#37234] [PATCH 05/21] gnu: Add python-minio Marius Bakke
` (16 subsequent siblings)
19 siblings, 0 replies; 25+ messages in thread
From: Marius Bakke @ 2019-08-30 14:25 UTC (permalink / raw)
To: 37234
* gnu/packages/python-web.scm (python-querystring-parser): New public variable.
---
gnu/packages/python-web.scm | 31 +++++++++++++++++++++++++++++++
1 file changed, 31 insertions(+)
diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index 8d11e9890f..9966f66d8f 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -825,6 +825,37 @@ teams extension for python-openid.")
(define-public python2-openid-teams
(package-with-python2 python-openid-teams))
+(define-public python-querystring-parser
+ (package
+ (name "python-querystring-parser")
+ (version "1.2.4")
+ (source (origin
+ (method url-fetch)
+ (uri (pypi-uri "querystring_parser" version))
+ (sha256
+ (base32
+ "0qlar8a0wa003hm2z6wcpb625r6vjj0a70rsni9h8lz0zwfcwkv4"))))
+ (build-system python-build-system)
+ (arguments
+ `(#:phases (modify-phases %standard-phases
+ (replace 'check
+ (lambda _
+ ;; XXX FIXME: This test is broken with Python 3.7:
+ ;; https://github.com/bernii/querystring-parser/issues/35
+ (substitute* "querystring_parser/tests.py"
+ (("self\\.assertEqual\\(self\\.knownValuesNormalized, result\\)")
+ "True"))
+ (invoke "python" "querystring_parser/tests.py"))))))
+ (propagated-inputs
+ `(("python-six" ,python-six)))
+ (home-page "https://github.com/bernii/querystring-parser")
+ (synopsis "QueryString parser that correctly handles nested dictionaries")
+ (description
+ "This package provides a query string parser for Python and Django
+projects that correctly creates nested dictionaries from sent form/querystring
+data.")
+ (license license:expat)))
+
(define-public python-tornado
(package
(name "python-tornado")
--
2.22.1
^ permalink raw reply related [flat|nested] 25+ messages in thread
* [bug#37234] [PATCH 05/21] gnu: Add python-minio.
2019-08-30 14:25 ` [bug#37234] [PATCH 01/21] gnu: Add python-gunicorn Marius Bakke
` (2 preceding siblings ...)
2019-08-30 14:25 ` [bug#37234] [PATCH 04/21] gnu: Add python-querystring-parser Marius Bakke
@ 2019-08-30 14:25 ` Marius Bakke
2019-08-30 14:25 ` [bug#37234] [PATCH 06/21] gnu: python-docker-py: Propagate runtime dependency Marius Bakke
` (15 subsequent siblings)
19 siblings, 0 replies; 25+ messages in thread
From: Marius Bakke @ 2019-08-30 14:25 UTC (permalink / raw)
To: 37234
* gnu/packages/python-web.scm (python-minio): New public variable.
---
gnu/packages/python-web.scm | 28 ++++++++++++++++++++++++++++
1 file changed, 28 insertions(+)
diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index 9966f66d8f..7454fe8793 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -523,6 +523,34 @@ C, yielding parse times that can be a thirtieth of the html5lib parse times.")
(define-public python2-html5-parser
(package-with-python2 python-html5-parser))
+(define-public python-minio
+ (package
+ (name "python-minio")
+ (version "4.0.20")
+ (source (origin
+ (method url-fetch)
+ (uri (pypi-uri "minio" version))
+ (sha256
+ (base32
+ "03z96iri7xl74p76blz72x09bjwh4qx2y6jxzv10vjssp4mx6499"))))
+ (build-system python-build-system)
+ (native-inputs
+ `(("python-faker" ,python-faker)
+ ("python-mock" ,python-mock)
+ ("python-nose" ,python-nose)))
+ (propagated-inputs
+ `(("python-certifi" ,python-certifi)
+ ("python-dateutil" ,python-dateutil)
+ ("python-future" ,python-future)
+ ("python-pytz" ,python-pytz)
+ ("python-urllib3" ,python-urllib3)))
+ (home-page "https://github.com/minio/minio-py")
+ (synopsis "Programmatically access Amazon S3 from Python")
+ (description
+ "This package provides a Python library that allows you to interact with
+any Amazon S3 compatible object storage server.")
+ (license license:asl2.0)))
+
(define-public python-pycurl
(package
(name "python-pycurl")
--
2.22.1
^ permalink raw reply related [flat|nested] 25+ messages in thread
* [bug#37234] [PATCH 06/21] gnu: python-docker-py: Propagate runtime dependency.
2019-08-30 14:25 ` [bug#37234] [PATCH 01/21] gnu: Add python-gunicorn Marius Bakke
` (3 preceding siblings ...)
2019-08-30 14:25 ` [bug#37234] [PATCH 05/21] gnu: Add python-minio Marius Bakke
@ 2019-08-30 14:25 ` Marius Bakke
2019-08-30 14:25 ` [bug#37234] [PATCH 07/21] gnu: python-botocore: Update to 1.12.209 Marius Bakke
` (14 subsequent siblings)
19 siblings, 0 replies; 25+ messages in thread
From: Marius Bakke @ 2019-08-30 14:25 UTC (permalink / raw)
To: 37234
* gnu/packages/docker.scm (python-docker-py)[inputs]: Move
PYTHON-WEBSOCKET-CLIENT from here ...
[propagated-inputs]: ... to here.
---
gnu/packages/docker.scm | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/gnu/packages/docker.scm b/gnu/packages/docker.scm
index 94cfa2bdb7..bf83c96e7b 100644
--- a/gnu/packages/docker.scm
+++ b/gnu/packages/docker.scm
@@ -65,11 +65,11 @@
`(("python-requests" ,python-requests-2.20)
("python-ipaddress" ,python-ipaddress)
("python-six" ,python-six)
- ("python-urllib3" ,python-urllib3-1.24)
- ("python-websocket-client" ,python-websocket-client)))
+ ("python-urllib3" ,python-urllib3-1.24)))
(propagated-inputs
`(("python-docker-pycreds" ,python-docker-pycreds)
- ("python-paramiko" ,python-paramiko))) ; adds SSH support
+ ("python-paramiko" ,python-paramiko) ;adds SSH support
+ ("python-websocket-client" ,python-websocket-client))) ;imported by api/client.py
(home-page "https://github.com/docker/docker-py/")
(synopsis "Python client for Docker")
(description "Docker-Py is a Python client for the Docker container
--
2.22.1
^ permalink raw reply related [flat|nested] 25+ messages in thread
* [bug#37234] [PATCH 07/21] gnu: python-botocore: Update to 1.12.209.
2019-08-30 14:25 ` [bug#37234] [PATCH 01/21] gnu: Add python-gunicorn Marius Bakke
` (4 preceding siblings ...)
2019-08-30 14:25 ` [bug#37234] [PATCH 06/21] gnu: python-docker-py: Propagate runtime dependency Marius Bakke
@ 2019-08-30 14:25 ` Marius Bakke
2019-08-30 14:25 ` [bug#37234] [PATCH 08/21] gnu: Add python-boto3 Marius Bakke
` (13 subsequent siblings)
19 siblings, 0 replies; 25+ messages in thread
From: Marius Bakke @ 2019-08-30 14:25 UTC (permalink / raw)
To: 37234; +Cc: Kristian Trandem
From: Kristian Trandem <kristian@devup.no>
* gnu/packages/python-xyz.scm (python-botocore): Update to 1.12.209.
[native-inputs]: Move PYTHON-URLLIB3 ...
[propagated-inputs]: ... here.
Signed-off-by: Marius Bakke <mbakke@fastmail.com>
---
gnu/packages/python-xyz.scm | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 7e874480e3..f0f99781b2 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -8731,14 +8731,14 @@ document.")
(define-public python-botocore
(package
(name "python-botocore")
- (version "1.12.149")
+ (version "1.12.209")
(source
(origin
(method url-fetch)
(uri (pypi-uri "botocore" version))
(sha256
(base32
- "12597f74khp3ngwr282cb949w0gcqj20rkfc3x275dijavyy5cmf"))))
+ "1fhy8pk0l9khymrjpcvj5qfa6li8r325s6daq9w4lr9v7jw7br4b"))))
(build-system python-build-system)
(arguments
;; FIXME: Many tests are failing.
@@ -8746,13 +8746,13 @@ document.")
(propagated-inputs
`(("python-dateutil" ,python-dateutil)
("python-docutils" ,python-docutils)
- ("python-jmespath" ,python-jmespath)))
+ ("python-jmespath" ,python-jmespath)
+ ("python-urllib3" ,python-urllib3)))
(native-inputs
`(("python-mock" ,python-mock)
("python-nose" ,python-nose)
("behave" ,behave)
("python-tox" ,python-tox)
- ("python-urllib3" ,python-urllib3)
("python-wheel" ,python-wheel)))
(home-page "https://github.com/boto/botocore")
(synopsis "Low-level interface to AWS")
--
2.22.1
^ permalink raw reply related [flat|nested] 25+ messages in thread
* [bug#37234] [PATCH 08/21] gnu: Add python-boto3.
2019-08-30 14:25 ` [bug#37234] [PATCH 01/21] gnu: Add python-gunicorn Marius Bakke
` (5 preceding siblings ...)
2019-08-30 14:25 ` [bug#37234] [PATCH 07/21] gnu: python-botocore: Update to 1.12.209 Marius Bakke
@ 2019-08-30 14:25 ` Marius Bakke
2019-08-30 14:25 ` [bug#37234] [PATCH 09/21] gnu: python-botocore: Remove unused inputs Marius Bakke
` (12 subsequent siblings)
19 siblings, 0 replies; 25+ messages in thread
From: Marius Bakke @ 2019-08-30 14:25 UTC (permalink / raw)
To: 37234; +Cc: Kristian Trandem
From: Kristian Trandem <kristian@devup.no>
gnu/packages/python-xyz.scm (python-boto3): New variable.
Signed-off-by: Marius Bakke <mbakke@fastmail.com>
---
gnu/packages/python-xyz.scm | 35 +++++++++++++++++++++++++++++++++++
1 file changed, 35 insertions(+)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index f0f99781b2..2fc2712395 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -8763,6 +8763,41 @@ interface to the Amazon Web Services (AWS) API.")
(define-public python2-botocore
(package-with-python2 python-botocore))
+(define-public python-boto3
+ (package
+ (name "python-boto3")
+ (version "1.9.209")
+ (home-page "https://github.com/boto/boto3")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference (url home-page) (commit version)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "08dy2sh36lg2zg0kk8hagxj2id97agqa9mpq4i2arvqlhi89xm5y"))))
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'delete-network-tests
+ ;; Deleting integration tests because they are trying to connect to AWS.
+ (lambda _
+ (delete-file-recursively "tests/integration")
+ #t)))))
+ (build-system python-build-system)
+ (native-inputs
+ `(("python-nose" ,python-nose)
+ ("python-mock" ,python-mock)))
+ (propagated-inputs
+ `(("python-botocore" ,python-botocore)
+ ("python-jmespath" ,python-jmespath)
+ ("python-s3transfer" ,python-s3transfer)))
+ (synopsis "AWS SDK for Python")
+ (description
+ "Boto3 is a @dfn{software development kit} (SDK) for @dfn{Amazon Web
+Services} (AWS), which allows Python developers to write software that makes
+use of services like Amazon S3 and Amazon EC2.")
+ (license license:asl2.0)))
+
(define-public python-xdo
(package
(name "python-xdo")
--
2.22.1
^ permalink raw reply related [flat|nested] 25+ messages in thread
* [bug#37234] [PATCH 09/21] gnu: python-botocore: Remove unused inputs.
2019-08-30 14:25 ` [bug#37234] [PATCH 01/21] gnu: Add python-gunicorn Marius Bakke
` (6 preceding siblings ...)
2019-08-30 14:25 ` [bug#37234] [PATCH 08/21] gnu: Add python-boto3 Marius Bakke
@ 2019-08-30 14:25 ` Marius Bakke
2019-08-30 14:25 ` [bug#37234] [PATCH 10/21] gnu: Add python-sshpubkeys Marius Bakke
` (11 subsequent siblings)
19 siblings, 0 replies; 25+ messages in thread
From: Marius Bakke @ 2019-08-30 14:25 UTC (permalink / raw)
To: 37234
* gnu/packages/python-xyz.scm (python-botocore)[native-inputs]: Remove.
---
gnu/packages/python-xyz.scm | 6 ------
1 file changed, 6 deletions(-)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 2fc2712395..f979d7d7be 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -8748,12 +8748,6 @@ document.")
("python-docutils" ,python-docutils)
("python-jmespath" ,python-jmespath)
("python-urllib3" ,python-urllib3)))
- (native-inputs
- `(("python-mock" ,python-mock)
- ("python-nose" ,python-nose)
- ("behave" ,behave)
- ("python-tox" ,python-tox)
- ("python-wheel" ,python-wheel)))
(home-page "https://github.com/boto/botocore")
(synopsis "Low-level interface to AWS")
(description "Botocore is a Python library that provides a low-level
--
2.22.1
^ permalink raw reply related [flat|nested] 25+ messages in thread
* [bug#37234] [PATCH 10/21] gnu: Add python-sshpubkeys.
2019-08-30 14:25 ` [bug#37234] [PATCH 01/21] gnu: Add python-gunicorn Marius Bakke
` (7 preceding siblings ...)
2019-08-30 14:25 ` [bug#37234] [PATCH 09/21] gnu: python-botocore: Remove unused inputs Marius Bakke
@ 2019-08-30 14:25 ` Marius Bakke
2019-08-30 14:25 ` [bug#37234] [PATCH 11/21] gnu: Add python-jsonpickle Marius Bakke
` (10 subsequent siblings)
19 siblings, 0 replies; 25+ messages in thread
From: Marius Bakke @ 2019-08-30 14:25 UTC (permalink / raw)
To: 37234
* gnu/packages/python-xyz.scm (python-sshpubkeys): New public variable.
---
gnu/packages/python-xyz.scm | 24 ++++++++++++++++++++++++
1 file changed, 24 insertions(+)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index f979d7d7be..016fc4460c 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -2883,6 +2883,30 @@ augment the changelog, but it can be used for other documents, too.")
(define-public python2-rst.linker
(package-with-python2 python-rst.linker))
+(define-public python-sshpubkeys
+ (package
+ (name "python-sshpubkeys")
+ (version "3.1.0")
+ (home-page "https://github.com/ojarva/python-sshpubkeys")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url home-page)
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "1h4gwmcfn84kkqh83km1vfz8sc5kr2g4gzgzmr8gz704jmqiv7nq"))))
+ (build-system python-build-system)
+ (propagated-inputs
+ `(("python-cryptography" ,python-cryptography)
+ ("python-ecdsa" ,python-ecdsa)))
+ (synopsis "OpenSSH public key parser")
+ (description
+ "This package provides a library for parsing and validating OpenSSH
+public key files.")
+ (license license:bsd-3)))
+
(define-public python-feedgenerator
(package
(name "python-feedgenerator")
--
2.22.1
^ permalink raw reply related [flat|nested] 25+ messages in thread
* [bug#37234] [PATCH 11/21] gnu: Add python-jsonpickle.
2019-08-30 14:25 ` [bug#37234] [PATCH 01/21] gnu: Add python-gunicorn Marius Bakke
` (8 preceding siblings ...)
2019-08-30 14:25 ` [bug#37234] [PATCH 10/21] gnu: Add python-sshpubkeys Marius Bakke
@ 2019-08-30 14:25 ` Marius Bakke
2019-08-30 14:25 ` [bug#37234] [PATCH 12/21] gnu: Add python-pytest-aiohttp Marius Bakke
` (9 subsequent siblings)
19 siblings, 0 replies; 25+ messages in thread
From: Marius Bakke @ 2019-08-30 14:25 UTC (permalink / raw)
To: 37234
* gnu/packages/python-web.scm (python-jsonpickle): New public variable.
---
gnu/packages/python-web.scm | 31 +++++++++++++++++++++++++++++++
1 file changed, 31 insertions(+)
diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index 7454fe8793..d5b0c26f46 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -325,6 +325,37 @@ Swartz.")
(define-public python2-html2text
(package-with-python2 python-html2text))
+(define-public python-jsonpickle
+ (package
+ (name "python-jsonpickle")
+ (version "1.2")
+ (source (origin
+ (method url-fetch)
+ (uri (pypi-uri "jsonpickle" version))
+ (sha256
+ (base32
+ "16xj4r31pnd90slax5mmd5wps5s73wp9mn6sy9nhkl5ih7bj5sfk"))))
+ (build-system python-build-system)
+ (arguments
+ `(#:phases (modify-phases %standard-phases
+ (replace 'check
+ (lambda _
+ (setenv "PYTHONPATH"
+ (string-append "./build/lib:"
+ (getenv "PYTHONPATH")))
+ (invoke "pytest" "-vv"))))))
+ (native-inputs
+ `(;; For tests.
+ ("python-numpy" ,python-numpy)
+ ("python-pandas" ,python-pandas)
+ ("python-pytest" ,python-pytest)))
+ (home-page "https://jsonpickle.github.io/")
+ (synopsis "Serialize object graphs into JSON")
+ (description
+ "This package provides a Python library for serializing any arbitrary
+object graph to and from JSON.")
+ (license license:bsd-3)))
+
(define-public python-mechanicalsoup
(package
(name "python-mechanicalsoup")
--
2.22.1
^ permalink raw reply related [flat|nested] 25+ messages in thread
* [bug#37234] [PATCH 12/21] gnu: Add python-pytest-aiohttp.
2019-08-30 14:25 ` [bug#37234] [PATCH 01/21] gnu: Add python-gunicorn Marius Bakke
` (9 preceding siblings ...)
2019-08-30 14:25 ` [bug#37234] [PATCH 11/21] gnu: Add python-jsonpickle Marius Bakke
@ 2019-08-30 14:25 ` Marius Bakke
2019-08-30 14:25 ` [bug#37234] [PATCH 13/21] gnu: Add python-aws-xray-sdk Marius Bakke
` (8 subsequent siblings)
19 siblings, 0 replies; 25+ messages in thread
From: Marius Bakke @ 2019-08-30 14:25 UTC (permalink / raw)
To: 37234
* gnu/packages/check.scm (python-pytest-aiohttp): New public variable.
---
gnu/packages/check.scm | 22 ++++++++++++++++++++++
1 file changed, 22 insertions(+)
diff --git a/gnu/packages/check.scm b/gnu/packages/check.scm
index e81cd50b66..fa9de0761d 100644
--- a/gnu/packages/check.scm
+++ b/gnu/packages/check.scm
@@ -791,6 +791,28 @@ and many external plugins.")
;; XXX: Tests require similarly ancient versions of many dependencies.
`(#:tests? #f))))
+(define-public python-pytest-aiohttp
+ (package
+ (name "python-pytest-aiohttp")
+ (version "0.3.0")
+ (source (origin
+ (method url-fetch)
+ (uri (pypi-uri "pytest-aiohttp" version))
+ (sha256
+ (base32
+ "0kx4mbs9bflycd8x9af0idcjhdgnzri3nw1qb0vpfyb3751qaaf9"))))
+ (build-system python-build-system)
+ (native-inputs
+ `(("python-pytest" ,python-pytest)))
+ (propagated-inputs
+ `(("python-aiohttp" ,python-aiohttp)))
+ (home-page "https://github.com/aio-libs/pytest-aiohttp/")
+ (synopsis "Pytest plugin for aiohttp support")
+ (description
+ "This library allows using the @code{aiohttp} pytest plugin without having
+to explicitly load it like @code{pytest_plugins = aiohttp.pytest_plugin}.")
+ (license license:asl2.0)))
+
(define-public python-pytest-cov
(package
(name "python-pytest-cov")
--
2.22.1
^ permalink raw reply related [flat|nested] 25+ messages in thread
* [bug#37234] [PATCH 13/21] gnu: Add python-aws-xray-sdk.
2019-08-30 14:25 ` [bug#37234] [PATCH 01/21] gnu: Add python-gunicorn Marius Bakke
` (10 preceding siblings ...)
2019-08-30 14:25 ` [bug#37234] [PATCH 12/21] gnu: Add python-pytest-aiohttp Marius Bakke
@ 2019-08-30 14:25 ` Marius Bakke
2019-08-30 14:25 ` [bug#37234] [PATCH 14/21] gnu: Add python-jsondiff Marius Bakke
` (7 subsequent siblings)
19 siblings, 0 replies; 25+ messages in thread
From: Marius Bakke @ 2019-08-30 14:25 UTC (permalink / raw)
To: 37234
* gnu/packages/python-web.scm (python-aws-xray-sdk): New public variable.
---
gnu/packages/python-web.scm | 64 +++++++++++++++++++++++++++++++++++++
1 file changed, 64 insertions(+)
diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index d5b0c26f46..a169279fcc 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -176,6 +176,70 @@ The package includes a module with full coverage of JSON RPC versions 1.0 and
comes with a SOCKS proxy client.")
(license (list license:expat license:bsd-2))))
+(define-public python-aws-xray-sdk
+ (package
+ (name "python-aws-xray-sdk")
+ (version "2.4.2")
+ (home-page "https://github.com/aws/aws-xray-sdk-python")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference (url home-page) (commit version)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "0a4b3lay728rb43aklwi99yimn44bgjhsgd6hbqrabpbdizh2xpr"))))
+ (build-system python-build-system)
+ (arguments
+ `(#:phases (modify-phases %standard-phases
+ (add-after 'unpack 'disable-tests
+ (lambda _
+ (for-each delete-file
+ '(;; These tests require packages not yet in Guix.
+ "tests/ext/aiobotocore/test_aiobotocore.py"
+ "tests/ext/pg8000/test_pg8000.py"
+ "tests/ext/pynamodb/test_pynamodb.py"
+ "tests/ext/psycopg2/test_psycopg2.py"
+ "tests/ext/aiohttp/test_middleware.py"
+ "tests/test_async_recorder.py"
+
+ ;; FIXME: Why is this failing?
+ "tests/test_patcher.py"
+
+ ;; TODO: How to configure Django for these tests.
+ "tests/ext/django/test_db.py"
+ "tests/ext/django/test_middleware.py"
+
+ ;; These tests want to access httpbin.org.
+ "tests/ext/requests/test_requests.py"
+ "tests/ext/httplib/test_httplib.py"
+ "tests/ext/aiohttp/test_client.py"))))
+ (replace 'check
+ (lambda _
+ (setenv "PYTHONPATH"
+ (string-append "./build/lib:.:"
+ (getenv "PYTHONPATH")))
+ (invoke "pytest" "-vv" "tests"))))))
+ (native-inputs
+ `(;; These are required for the test suite.
+ ("python-flask" ,python-flask)
+ ("python-flask-sqlalchemy" ,python-flask-sqlalchemy)
+ ("python-pytest" ,python-pytest)
+ ("python-pytest-aiohttp" ,python-pytest-aiohttp)
+ ("python-requests" ,python-requests)
+ ("python-sqlalchemy" ,python-sqlalchemy)))
+ (propagated-inputs
+ `(("python-aiohttp" ,python-aiohttp)
+ ("python-botocore" ,python-botocore)
+ ("python-future" ,python-future)
+ ("python-jsonpickle" ,python-jsonpickle)
+ ("python-urllib3" ,python-urllib3)
+ ("python-wrapt" ,python-wrapt)))
+ (synopsis "Profile applications on AWS X-Ray")
+ (description
+ "The AWS X-Ray SDK for Python enables Python developers to record and
+emit information from within their applications to the AWS X-Ray service.")
+ (license license:asl2.0)))
+
(define-public python-falcon
(package
(name "python-falcon")
--
2.22.1
^ permalink raw reply related [flat|nested] 25+ messages in thread
* [bug#37234] [PATCH 14/21] gnu: Add python-jsondiff.
2019-08-30 14:25 ` [bug#37234] [PATCH 01/21] gnu: Add python-gunicorn Marius Bakke
` (11 preceding siblings ...)
2019-08-30 14:25 ` [bug#37234] [PATCH 13/21] gnu: Add python-aws-xray-sdk Marius Bakke
@ 2019-08-30 14:25 ` Marius Bakke
2019-08-30 14:25 ` [bug#37234] [PATCH 15/21] gnu: Add python-jose Marius Bakke
` (6 subsequent siblings)
19 siblings, 0 replies; 25+ messages in thread
From: Marius Bakke @ 2019-08-30 14:25 UTC (permalink / raw)
To: 37234
* gnu/packages/python-web.scm (python-jsondiff): New public variable.
---
gnu/packages/python-web.scm | 21 +++++++++++++++++++++
1 file changed, 21 insertions(+)
diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index a169279fcc..6695bd5e39 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -389,6 +389,27 @@ Swartz.")
(define-public python2-html2text
(package-with-python2 python-html2text))
+(define-public python-jsondiff
+ (package
+ (name "python-jsondiff")
+ (version "1.1.2")
+ (source (origin
+ (method url-fetch)
+ (uri (pypi-uri "jsondiff" version))
+ (sha256
+ (base32
+ "08dfs98xi7ick0mp1bkcvmw66ki3cs25nln7g8xqyjmaxj51663y"))))
+ (build-system python-build-system)
+ (arguments
+ ;; XXX: Tests depend on an unmaintained library called "nose-random".
+ `(#:tests? #f))
+ (home-page "https://github.com/xlwings/jsondiff")
+ (synopsis "Diff JSON and JSON-like structures in Python")
+ (description
+ "This package provides facilities for inspecting differences between
+data structures such as JSON, dictionaries, and sets.")
+ (license license:expat)))
+
(define-public python-jsonpickle
(package
(name "python-jsonpickle")
--
2.22.1
^ permalink raw reply related [flat|nested] 25+ messages in thread
* [bug#37234] [PATCH 15/21] gnu: Add python-jose.
2019-08-30 14:25 ` [bug#37234] [PATCH 01/21] gnu: Add python-gunicorn Marius Bakke
` (12 preceding siblings ...)
2019-08-30 14:25 ` [bug#37234] [PATCH 14/21] gnu: Add python-jsondiff Marius Bakke
@ 2019-08-30 14:25 ` Marius Bakke
2019-08-30 14:25 ` [bug#37234] [PATCH 16/21] gnu: Add python-boto Marius Bakke
` (5 subsequent siblings)
19 siblings, 0 replies; 25+ messages in thread
From: Marius Bakke @ 2019-08-30 14:25 UTC (permalink / raw)
To: 37234
* gnu/packages/python-web.scm (python-jose): New public variable.
---
gnu/packages/python-web.scm | 42 +++++++++++++++++++++++++++++++++++++
1 file changed, 42 insertions(+)
diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index 6695bd5e39..6ae5fd6860 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -389,6 +389,48 @@ Swartz.")
(define-public python2-html2text
(package-with-python2 python-html2text))
+(define-public python-jose
+ (package
+ (name "python-jose")
+ (version "3.0.1")
+ (home-page "http://github.com/mpdavis/python-jose")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference (url home-page) (commit version)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "1ahq4m86z504bnlk9z473r7r3dprg5m39900rld797hbczdhqa4f"))))
+ (build-system python-build-system)
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (replace 'check
+ (lambda _
+ (invoke "pytest" "-vv" "-m"
+ ;; Test only the pyca/cryptography backend.
+ "not (pycryptodome or pycrypto or backend_compatibility)"))))))
+ (native-inputs
+ `(;; All native inputs are for tests.
+ ("python-ecdsa" ,python-ecdsa)
+ ("python-pyasn1" ,python-pyasn1)
+ ("python-pycrypto" ,python-pycrypto)
+ ("python-pytest" ,python-pytest)
+ ("python-pytest-cov" ,python-pytest-cov)
+ ("python-pytest-runner" ,python-pytest-runner)))
+ (propagated-inputs
+ `(("python-cryptography" ,python-cryptography)
+ ("python-future" ,python-future) ;XXX: remove for >3.0.1
+ ("python-rsa" ,python-rsa)
+ ("python-six" ,python-six)))
+ (synopsis "JOSE implementation in Python")
+ (description
+ "The @dfn{JavaScript Object Signing and Encryption} (JOSE) technologies
+- JSON Web Signature (JWS), JSON Web Encryption (JWE), JSON Web Key (JWK), and
+JSON Web Algorithms (JWA) - collectively can be used to encrypt and/or sign
+content using a variety of algorithms.")
+ (license license:expat)))
+
(define-public python-jsondiff
(package
(name "python-jsondiff")
--
2.22.1
^ permalink raw reply related [flat|nested] 25+ messages in thread
* [bug#37234] [PATCH 16/21] gnu: Add python-boto.
2019-08-30 14:25 ` [bug#37234] [PATCH 01/21] gnu: Add python-gunicorn Marius Bakke
` (13 preceding siblings ...)
2019-08-30 14:25 ` [bug#37234] [PATCH 15/21] gnu: Add python-jose Marius Bakke
@ 2019-08-30 14:25 ` Marius Bakke
2019-08-30 14:25 ` [bug#37234] [PATCH 17/21] gnu: Add python-aws-sam-translator Marius Bakke
` (4 subsequent siblings)
19 siblings, 0 replies; 25+ messages in thread
From: Marius Bakke @ 2019-08-30 14:25 UTC (permalink / raw)
To: 37234
* gnu/packages/python-xyz.scm (python-boto): New public variable.
---
gnu/packages/python-xyz.scm | 42 +++++++++++++++++++++++++++++++++++++
1 file changed, 42 insertions(+)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 016fc4460c..7d4b0be494 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -8752,6 +8752,48 @@ document.")
(define-public python2-jmespath
(package-with-python2 python-jmespath))
+(define-public python-boto
+ (package
+ (name "python-boto")
+ (version "2.49.0")
+ (source (origin
+ (method url-fetch)
+ (uri (pypi-uri "boto" version))
+ (sha256
+ (base32
+ "0njy09c4wjx7ipxhwi6vv404nflyiasl78vwwxxpclnql903n3ga"))))
+ (build-system python-build-system)
+ (arguments
+ `(#:phases (modify-phases %standard-phases
+ (add-before 'check 'prepare-tests
+ (lambda _
+ ;; The SSH tests requires HOME with a .ssh directory.
+ (setenv "HOME" "/tmp")
+ (mkdir "/tmp/.ssh")
+ (call-with-output-file "/tmp/.ssh/authorized_keys"
+ (const #t))
+ (call-with-output-file "/tmp/.ssh/known_hosts"
+ (const #t))
+ #t))
+ (replace 'check
+ (lambda _
+ (invoke "python" "tests/test.py" "default"))))))
+ (native-inputs
+ `(("python-httpretty" ,python-httpretty)
+ ("python-mock" ,python-mock)
+ ("python-nose" ,python-nose)))
+ (propagated-inputs
+ `(("python-paramiko" ,python-paramiko)
+ ("python-requests" ,python-requests)))
+ (home-page "https://github.com/boto/boto")
+ (synopsis "Python interfaces for Amazon Web Services")
+ (description
+ "This package provides various facilities for interacting with Amazon
+Web Services through Python.
+
+This software is unmaintained, and new projects should use @code{boto3} instead.")
+ (license license:expat)))
+
(define-public python-botocore
(package
(name "python-botocore")
--
2.22.1
^ permalink raw reply related [flat|nested] 25+ messages in thread
* [bug#37234] [PATCH 17/21] gnu: Add python-aws-sam-translator.
2019-08-30 14:25 ` [bug#37234] [PATCH 01/21] gnu: Add python-gunicorn Marius Bakke
` (14 preceding siblings ...)
2019-08-30 14:25 ` [bug#37234] [PATCH 16/21] gnu: Add python-boto Marius Bakke
@ 2019-08-30 14:25 ` Marius Bakke
2019-08-30 14:25 ` [bug#37234] [PATCH 18/21] gnu: Add python-cfn-lint Marius Bakke
` (3 subsequent siblings)
19 siblings, 0 replies; 25+ messages in thread
From: Marius Bakke @ 2019-08-30 14:25 UTC (permalink / raw)
To: 37234
* gnu/packages/python-web.scm (python-aws-sam-translator): New public variable.
---
gnu/packages/python-web.scm | 26 ++++++++++++++++++++++++++
1 file changed, 26 insertions(+)
diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index 6ae5fd6860..6e7ecacc99 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -176,6 +176,32 @@ The package includes a module with full coverage of JSON RPC versions 1.0 and
comes with a SOCKS proxy client.")
(license (list license:expat license:bsd-2))))
+(define-public python-aws-sam-translator
+ (package
+ (name "python-aws-sam-translator")
+ (version "1.13.2")
+ (source (origin
+ (method url-fetch)
+ (uri (pypi-uri "aws-sam-translator" version))
+ (sha256
+ (base32
+ "0xin1819l4hdd8cs235ffww8w7k9gbb0k3p1li6nczsjnz13k1mk"))))
+ (build-system python-build-system)
+ (arguments
+ `(;; XXX: Tests are not distributed with the PyPI archive, and would
+ ;; introduce a circular dependency on python-cfn-lint.
+ #:tests? #f))
+ (propagated-inputs
+ `(("python-boto3" ,python-boto3)
+ ("python-jsonschema" ,python-jsonschema)
+ ("python-six" ,python-six)))
+ (home-page "https://github.com/awslabs/serverless-application-model")
+ (synopsis "Transform AWS SAM templates into AWS CloudFormation templates")
+ (description
+ "AWS SAM Translator is a library that transform @dfn{Serverless Application
+Model} (SAM) templates into AWS CloudFormation templates.")
+ (license license:asl2.0)))
+
(define-public python-aws-xray-sdk
(package
(name "python-aws-xray-sdk")
--
2.22.1
^ permalink raw reply related [flat|nested] 25+ messages in thread
* [bug#37234] [PATCH 18/21] gnu: Add python-cfn-lint.
2019-08-30 14:25 ` [bug#37234] [PATCH 01/21] gnu: Add python-gunicorn Marius Bakke
` (15 preceding siblings ...)
2019-08-30 14:25 ` [bug#37234] [PATCH 17/21] gnu: Add python-aws-sam-translator Marius Bakke
@ 2019-08-30 14:25 ` Marius Bakke
2019-08-30 14:25 ` [bug#37234] [PATCH 19/21] gnu: python-pyyaml: Add version 5.1 Marius Bakke
` (2 subsequent siblings)
19 siblings, 0 replies; 25+ messages in thread
From: Marius Bakke @ 2019-08-30 14:25 UTC (permalink / raw)
To: 37234
* gnu/packages/python-web.scm (python-cfn-lint): New public variable.
---
gnu/packages/python-web.scm | 40 +++++++++++++++++++++++++++++++++++++
1 file changed, 40 insertions(+)
diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index 6e7ecacc99..b6f1f208ad 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -266,6 +266,46 @@ Model} (SAM) templates into AWS CloudFormation templates.")
emit information from within their applications to the AWS X-Ray service.")
(license license:asl2.0)))
+(define-public python-cfn-lint
+ (package
+ (name "python-cfn-lint")
+ (version "0.23.3")
+ (home-page "https://github.com/aws-cloudformation/cfn-python-lint")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url home-page)
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "1bf40lvhggf2x0n85sprkhzk9cgnxng5hhpazy4gipia1p7gv25x"))))
+ (build-system python-build-system)
+ (arguments
+ `(#:phases (modify-phases %standard-phases
+ (replace 'check
+ (lambda _
+ (setenv "PYTHONPATH"
+ (string-append "./build/lib:"
+ (getenv "PYTHONPATH")))
+ (invoke "python" "-m" "unittest" "discover"
+ "-s" "test"))))))
+ (native-inputs
+ `(("python-mock" ,python-mock)))
+ (propagated-inputs
+ `(("python-aws-sam-translator" ,python-aws-sam-translator)
+ ("python-jsonpatch" ,python-jsonpatch)
+ ("python-jsonpointer" ,python-jsonpointer)
+ ("python-jsonschema" ,python-jsonschema)
+ ("python-pyyaml" ,python-pyyaml)
+ ("python-six" ,python-six)))
+ (synopsis "Validate CloudFormation templates")
+ (description
+ "This package lets you validate CloudFormation YAML/JSON templates against
+the CloudFormation spec and additional checks. Includes checking valid values
+for resource properties and best practices.")
+ (license license:expat)))
+
(define-public python-falcon
(package
(name "python-falcon")
--
2.22.1
^ permalink raw reply related [flat|nested] 25+ messages in thread
* [bug#37234] [PATCH 19/21] gnu: python-pyyaml: Add version 5.1.
2019-08-30 14:25 ` [bug#37234] [PATCH 01/21] gnu: Add python-gunicorn Marius Bakke
` (16 preceding siblings ...)
2019-08-30 14:25 ` [bug#37234] [PATCH 18/21] gnu: Add python-cfn-lint Marius Bakke
@ 2019-08-30 14:25 ` Marius Bakke
2019-08-30 14:25 ` [bug#37234] [PATCH 20/21] gnu: Add python-moto Marius Bakke
2019-08-30 14:25 ` [bug#37234] [PATCH 21/21] gnu: Add mlflow Marius Bakke
19 siblings, 0 replies; 25+ messages in thread
From: Marius Bakke @ 2019-08-30 14:25 UTC (permalink / raw)
To: 37234
* gnu/packages/python-xyz.scm (python-pyyaml-next, python2-pyyaml-next): New public variables.
---
gnu/packages/python-xyz.scm | 22 ++++++++++++++++++++++
1 file changed, 22 insertions(+)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 7d4b0be494..7056ea3d48 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -2282,6 +2282,28 @@ object.")
(define-public python2-pyyaml
(package-with-python2 python-pyyaml))
+;; Some packages (e.g python-keras) are not ready for the PyYAML >= 4.x API,
+;; so we keep this as a separate variable for now.
+(define-public python-pyyaml-next
+ (package/inherit python-pyyaml
+ (version "5.1")
+ (source (origin
+ (method url-fetch)
+ (uri (pypi-uri "PyYAML" version))
+ (sha256
+ (base32
+ "15czj11s2bcgchn2jx81k0jmswf2hjxry5cq820h7hgpxiscfss3"))))))
+
+(define-public python2-pyyaml-next
+ (package/inherit python2-pyyaml
+ (version "5.1")
+ (source (origin
+ (method url-fetch)
+ (uri (pypi-uri "PyYAML" version))
+ (sha256
+ (base32
+ "15czj11s2bcgchn2jx81k0jmswf2hjxry5cq820h7hgpxiscfss3"))))))
+
(define-public python-vine
(package
(name "python-vine")
--
2.22.1
^ permalink raw reply related [flat|nested] 25+ messages in thread
* [bug#37234] [PATCH 20/21] gnu: Add python-moto.
2019-08-30 14:25 ` [bug#37234] [PATCH 01/21] gnu: Add python-gunicorn Marius Bakke
` (17 preceding siblings ...)
2019-08-30 14:25 ` [bug#37234] [PATCH 19/21] gnu: python-pyyaml: Add version 5.1 Marius Bakke
@ 2019-08-30 14:25 ` Marius Bakke
2019-08-30 14:25 ` [bug#37234] [PATCH 21/21] gnu: Add mlflow Marius Bakke
19 siblings, 0 replies; 25+ messages in thread
From: Marius Bakke @ 2019-08-30 14:25 UTC (permalink / raw)
To: 37234
* gnu/packages/python-xyz.scm (python-moto): New public variable.
---
gnu/packages/python-xyz.scm | 56 +++++++++++++++++++++++++++++++++++++
1 file changed, 56 insertions(+)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 7056ea3d48..e908fcf3d5 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -94,6 +94,7 @@
#:use-module (gnu packages crypto)
#:use-module (gnu packages databases)
#:use-module (gnu packages dbm)
+ #:use-module (gnu packages docker)
#:use-module (gnu packages file)
#:use-module (gnu packages fontutils)
#:use-module (gnu packages gcc)
@@ -8666,6 +8667,61 @@ text.")
(define-public python2-colorama
(package-with-python2 python-colorama))
+(define-public python-moto
+ (package
+ (name "python-moto")
+ (version "1.3.13")
+ (source (origin
+ (method url-fetch)
+ (uri (pypi-uri "moto" version))
+ (sha256
+ (base32
+ "0rhbjvqi1khp80gfnl3x632kwlpq3k7m8f13nidznixdpa78vm4m"))))
+ (build-system python-build-system)
+ (arguments
+ `(#:phases (modify-phases %standard-phases
+ (add-before 'check 'adjust-setuppy
+ (lambda _
+ ;; Remove artificial dependency on Zopes DateTime (see
+ ;; <https://github.com/spulec/moto/pull/2297>).
+ (substitute* "setup.py"
+ (("\"datetime\",")
+ ""))
+ #t)))))
+ (native-inputs
+ `(("python-flask" ,python-flask)
+ ("python-freezegun" ,python-freezegun)
+ ("python-nose" ,python-nose)
+ ("python-sure" ,python-sure)))
+ (propagated-inputs
+ `(("python-aws-xray-sdk" ,python-aws-xray-sdk)
+ ("python-boto" ,python-boto)
+ ("python-boto3" ,python-boto3)
+ ("python-botocore" ,python-botocore)
+ ("python-cfn-lint" ,python-cfn-lint)
+ ("python-cryptography" ,python-cryptography)
+ ("python-dateutil" ,python-dateutil)
+ ("python-docker" ,python-docker-py)
+ ("python-idna" ,python-idna)
+ ("python-jinja2" ,python-jinja2)
+ ("python-jose" ,python-jose)
+ ("python-jsondiff" ,python-jsondiff)
+ ("python-mock" ,python-mock)
+ ("python-pytz" ,python-pytz)
+ ("python-pyyaml" ,python-pyyaml-next)
+ ("python-requests" ,python-requests)
+ ("python-responses" ,python-responses)
+ ("python-six" ,python-six)
+ ("python-sshpubkeys" ,python-sshpubkeys)
+ ("python-werkzeug" ,python-werkzeug)
+ ("python-xmltodict" ,python-xmltodict)))
+ (home-page "https://github.com/spulec/moto")
+ (synopsis "Mock out the boto library")
+ (description
+ "@code{moto} is a library that allows your Python tests to easily mock
+out the @code{boto} library.")
+ (license license:asl2.0)))
+
(define-public python-rsa
(package
(name "python-rsa")
--
2.22.1
^ permalink raw reply related [flat|nested] 25+ messages in thread
* [bug#37234] [PATCH 21/21] gnu: Add mlflow.
2019-08-30 14:25 ` [bug#37234] [PATCH 01/21] gnu: Add python-gunicorn Marius Bakke
` (18 preceding siblings ...)
2019-08-30 14:25 ` [bug#37234] [PATCH 20/21] gnu: Add python-moto Marius Bakke
@ 2019-08-30 14:25 ` Marius Bakke
19 siblings, 0 replies; 25+ messages in thread
From: Marius Bakke @ 2019-08-30 14:25 UTC (permalink / raw)
To: 37234
* gnu/packages/machine-learning.scm (mlflow): New public variable.
---
gnu/packages/machine-learning.scm | 122 +++++++++++++++++++++++++++++-
1 file changed, 121 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/machine-learning.scm b/gnu/packages/machine-learning.scm
index e48c91a2cf..19b1c7482b 100644
--- a/gnu/packages/machine-learning.scm
+++ b/gnu/packages/machine-learning.scm
@@ -1,7 +1,7 @@
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2015, 2016, 2017, 2018, 2019 Ricardo Wurmus <rekado@elephly.net>
;;; Copyright © 2016 Efraim Flashner <efraim@flashner.co.il>
-;;; Copyright © 2016, 2017 Marius Bakke <mbakke@fastmail.com>
+;;; Copyright © 2016, 2017, 2019 Marius Bakke <mbakke@fastmail.com>
;;; Copyright © 2016 Hartmut Goebel <h.goebel@crazy-compilers.com>
;;; Copyright © 2018, 2019 Tobias Geerinckx-Rice <me@tobias.gr>
;;; Copyright © 2018 Kei Kebreau <kkebreau@posteo.net>
@@ -52,6 +52,7 @@
#:use-module (gnu packages cran)
#:use-module (gnu packages databases)
#:use-module (gnu packages dejagnu)
+ #:use-module (gnu packages docker)
#:use-module (gnu packages gcc)
#:use-module (gnu packages glib)
#:use-module (gnu packages graphviz)
@@ -73,7 +74,9 @@
#:use-module (gnu packages statistics)
#:use-module (gnu packages sqlite)
#:use-module (gnu packages swig)
+ #:use-module (gnu packages time)
#:use-module (gnu packages tls)
+ #:use-module (gnu packages version-control)
#:use-module (gnu packages web)
#:use-module (gnu packages xml)
#:use-module (gnu packages xorg)
@@ -354,6 +357,123 @@ networks) based on simulation of (stochastic) flow in graphs.")
algorithm.")
(license license:gpl3)))
+(define-public mlflow
+ (package
+ (name "mlflow")
+ (version "1.2.0")
+ (source (origin
+ ;; The PyPI release lacks tests, so we take the git repository.
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/mlflow/mlflow")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "0rn3anjkm0i6phyvh7xsrvxbhqp5dhvqf74kaa69q5hgy4y2y0py"))))
+ (build-system python-build-system)
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (add-before 'check 'adjust-tests
+ (lambda _
+ ;; TODO: It would be great to disable the individual test cases
+ ;; instead of deleting whole files, e.g. with
+ ;; (setenv "PYTEST_ADDOPTS" "-k not foo and not bar").
+ (for-each delete-file
+ '(;; These tests require packages not yet available
+ ;; in Guix.
+ "tests/azureml/test_image_creation.py"
+ "tests/h2o/test_h2o_model_export.py"
+ "tests/onnx/test_onnx_model_export.py"
+ "tests/projects/test_docker_projects.py"
+ "tests/projects/test_kubernetes.py"
+ "tests/projects/test_projects.py"
+ "tests/pyfunc/test_spark.py"
+ "tests/pytorch/test_pytorch_model_export.py"
+ "tests/spark/test_spark_model_export.py"
+ "tests/store/test_azure_blob_artifact_repo.py"
+ "tests/store/test_gcs_artifact_repo.py"
+ "tests/store/test_sftp_artifact_repo.py"
+ "tests/tracking/test_tracking.py"
+
+ ;; TODO: These require installing 'mlflow_test_plugin'.
+ "tests/server/test_handlers.py"
+ "tests/store/test_artifact_repository_registry.py"
+ "tests/tracking/test_utils.py"
+ "tests/tracking/context/test_registry.py"
+
+ ;; This requires a running Docker daemon.
+ "tests/models/test_cli.py"
+
+ ;; These require a standalone version of 'conda'.
+ "tests/pyfunc/test_scoring_server.py"
+ "tests/pyfunc/test_model_export_with_class_and_artifacts.py"
+
+ ;; These tests need internet access.
+ "tests/projects/test_projects_cli.py"
+ "tests/tensorflow_autolog/test_tensorflow_autolog.py"))
+
+ ;; The test script stores non-zero exit codes in an "$err" variable
+ ;; and checks it at the end of the run. We need to allow exit code 5
+ ;; from pytest, meaning "no tests were collected", because the above
+ ;; deletions empties some of the directories given to pytest.
+ (substitute* "travis/run-large-python-tests.sh"
+ (("trap 'err=1' ERR")
+ "trap '[[ \"$?\" != \"5\" ]] && err=1' ERR"))
+
+ #t))
+ (delete 'check)
+ (add-after 'install 'check
+ (lambda* (#:key inputs outputs #:allow-other-keys)
+ (add-installed-pythonpath inputs outputs)
+ (setenv "PATH"
+ (string-append (assoc-ref outputs "out")
+ "/bin:" (getenv "PATH")))
+ (invoke "./travis/run-large-python-tests.sh"))))))
+ (native-inputs
+ `( ;; For tests.
+ ("python-keras" ,python-keras)
+ ("python-moto" ,python-moto)
+ ("python-pyarrow" ,python-pyarrow)
+ ("python-pytest" ,python-pytest)
+ ("tensorflow" ,tensorflow)))
+ (propagated-inputs
+ `(("python-alembic" ,python-alembic)
+ ("python-boto3" ,python-boto3)
+ ("python-click" ,python-click)
+ ("python-cloudpickle" ,python-cloudpickle)
+ ("python-databricks-cli" ,python-databricks-cli)
+ ("python-dateutil" ,python-dateutil)
+ ("python-docker" ,python-docker-py)
+ ("python-entrypoints" ,python-entrypoints)
+ ("python-flask" ,python-flask)
+ ("python-gitpython" ,python-gitpython)
+ ("python-gorilla" ,python-gorilla)
+ ("python-gunicorn" ,python-gunicorn)
+ ("python-numpy" ,python-numpy)
+ ("python-pandas" ,python-pandas)
+ ("python-protobuf" ,python-protobuf-next)
+ ("python-pyyaml" ,python-pyyaml)
+ ("python-querystring-parser" ,python-querystring-parser)
+ ("python-requests" ,python-requests)
+ ("python-scikit-learn" ,python-scikit-learn)
+ ("python-simplejson" ,python-simplejson)
+ ("python-six" ,python-six)
+ ("python-sqlalchemy" ,python-sqlalchemy)
+ ("python-sqlparse" ,python-sqlparse)
+ ("python-waitress" ,python-waitress)))
+ (home-page "https://mlflow.org/")
+ (synopsis "Manage machine learning workflows")
+ (description
+ "MLflow is a platform to streamline machine learning development,
+including tracking experiments, packaging code into reproducible runs, and
+sharing and deploying models. MLflow offers a set of lightweight APIs that
+can used with any existing machine learning application or library (TensorFlow,
+PyTorch, XGBoost, etc), wherever you currently run ML code (e.g. in notebooks,
+standalone applications or the cloud).")
+ (license license:asl2.0)))
+
(define-public randomjungle
(package
(name "randomjungle")
--
2.22.1
^ permalink raw reply related [flat|nested] 25+ messages in thread