summaryrefslogtreecommitdiff
path: root/gnu/packages/python-xyz.scm
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/packages/python-xyz.scm')
-rw-r--r--gnu/packages/python-xyz.scm173
1 files changed, 106 insertions, 67 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index b5aa148e14..37108fa59e 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -7746,6 +7746,35 @@ you traverse a schema like paths and access a schema on demand with separate
dereferencing accessor layer.")
(license license:asl2.0)))
+(define-public python-jsonschema-objects
+ (package
+ (name "python-jsonschema-objects")
+ (version "0.5.7")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/cwacek/python-jsonschema-objects/")
+ (commit version)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "0p3m0fbj25brhfma4bl47xjq6x4ay14yx284qwrki96dwd6v46xd"))))
+ (build-system pyproject-build-system)
+ (native-inputs
+ (list python-pytest
+ python-pytest-mock
+ python-setuptools))
+ (propagated-inputs
+ (list python-inflection
+ python-jsonschema
+ python-markdown))
+ (home-page "http://python-jsonschema-objects.readthedocs.org/")
+ (synopsis "Automatic Python binding generation from JSON schemas")
+ (description
+ "This package provides an automatic class-based binding to JSON
+Schemas for use in python.")
+ (license license:expat)))
+
(define-public python-jsonschema-specifications
(package
(name "python-jsonschema-specifications")
@@ -12965,50 +12994,52 @@ that requires its specific capabilities.")
(define-public python-ffmpeg-python
;; The latest release (0.2.0) is old and its test suite crashs on Python 3.10.
- (let ((commit "df129c7ba30aaa9ffffb81a48f53aa7253b0b4e6") (revision "0"))
- (package
- (name "python-ffmpeg-python")
- (version (git-version "0.2.0" revision commit))
- (source (origin
- (method git-fetch)
- (uri (git-reference
- (url "https://github.com/kkroening/ffmpeg-python.git")
- (commit commit)))
- (file-name (git-file-name name version))
- (sha256
- (base32
- "1zj4ac37n4igfj21zy405mdlvbpv6jyb12wfpszf8zkhhj2qby4c"))))
- (build-system python-build-system)
- (arguments
- (list
- #:phases
- #~(modify-phases %standard-phases
- (add-after 'unpack 'hardcode-ffmpeg
- (lambda* (#:key inputs #:allow-other-keys)
- (define ffmpeg (search-input-file inputs "bin/ffmpeg"))
+ (package
+ (name "python-ffmpeg-python")
+ (properties '((commit . "df129c7ba30aaa9ffffb81a48f53aa7253b0b4e6")
+ (revision . "0")))
+ (version (git-version "0.2.0"
+ (assoc-ref properties 'revision)
+ (assoc-ref properties 'commit)))
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/kkroening/ffmpeg-python.git")
+ (commit (assoc-ref properties 'commit))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1zj4ac37n4igfj21zy405mdlvbpv6jyb12wfpszf8zkhhj2qby4c"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list
+ #:test-flags
+ #~(list "-k" "not test_pipe and not test__probe")
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'hardcode-ffmpeg
+ (lambda* (#:key inputs #:allow-other-keys)
+ (let ((ffmpeg (search-input-file inputs "bin/ffmpeg")))
(substitute* "ffmpeg/_run.py"
(("cmd='ffmpeg'")
(string-append "cmd='" ffmpeg "'")))
(substitute* "ffmpeg/tests/test_ffmpeg.py"
(("out_file.compile\\(\\) == \\['ffmpeg'")
- (string-append "out_file.compile() == ['" ffmpeg "'")))))
- ;; Some tests fail with ffmpeg 5+
- (replace 'check
- (lambda* (#:key tests? #:allow-other-keys)
- (when tests?
- (invoke "pytest" "-vv"
- "-k" "not test_pipe and not test__probe")))))))
- (inputs (list ffmpeg))
- (propagated-inputs (list python-future))
- (native-inputs (list python-future python-numpy python-pytest
- python-pytest-mock python-pytest-runner))
- (home-page "https://github.com/kkroening/ffmpeg-python")
- (synopsis "Python bindings for FFmpeg with complex filtering support")
- (description
- "ffmpeg-python allows you to write FFmpeg filtergraphs in familiar
+ (format #f "out_file.compile() == [~s" ffmpeg)))))))))
+ (inputs (list ffmpeg))
+ (propagated-inputs (list python-future))
+ (native-inputs (list python-future
+ python-numpy
+ python-pytest
+ python-pytest-mock
+ python-setuptools))
+ (home-page "https://github.com/kkroening/ffmpeg-python")
+ (synopsis "Python bindings for FFmpeg with complex filtering support")
+ (description
+ "ffmpeg-python allows you to write FFmpeg filtergraphs in familiar
Python terms, taking care of running ffmpeg with the correct command-line
arguments. It handles arbitrarily large (directed-acyclic) signal graphs.")
- (license license:asl2.0))))
+ (license license:asl2.0)))
(define-public python-imageio-ffmpeg
(package
@@ -13358,23 +13389,23 @@ all of your favorite programs.")
(define-public python-pywinrm
(package
(name "python-pywinrm")
- (version "0.4.1")
+ (version "0.5.0")
(source
(origin
- (method url-fetch)
- (uri (pypi-uri "pywinrm" version))
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/diyan/pywinrm/")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
(sha256
- (base32
- "10gabhhg3rgacd5ahmi2r128z99fzbrbx6mz1nnq0dxmhmn5rpjf"))))
- (build-system python-build-system)
+ (base32 "0jp7rps6zg5b6n98lfkwbhv72982sxxnqc4v4i6hjlq1ycjmmb8r"))))
+ (build-system pyproject-build-system)
(propagated-inputs
- (list python-six python-requests_ntlm python-xmltodict
- python-kerberos))
+ (list python-requests python-requests-ntlm python-xmltodict))
(native-inputs
- (list python-mock python-pytest))
+ (list python-mock python-pytest python-setuptools))
(home-page "https://github.com/diyan/pywinrm/")
- (synopsis
- "Python library for Windows Remote Management (WinRM)")
+ (synopsis "Python library for Windows Remote Management (WinRM)")
(description
"pywinrm is a Python client for the Windows Remote Management (WinRM)
service. It allows you to invoke commands on target Windows machines from
@@ -13533,16 +13564,19 @@ etc. The core of this module is a decorator factory.")
(uri (pypi-uri "drmaa" version))
(sha256
(base32 "0xzqriqyvk5b8hszbavsyxd29wm3sxirm8zvvdm73rs2iq7w4hkx"))))
- (build-system python-build-system)
+ (build-system pyproject-build-system)
;; The test suite requires libdrmaa which is provided by the cluster
;; environment. At runtime the environment variable DRMAA_LIBRARY_PATH
;; should be set to the path of the libdrmaa library.
(arguments
- '(#:tests? #f
- #:phases (modify-phases %standard-phases
- ;; Loading the library fails because DRMAA_LIBRARY_PATH
- ;; is not configured.
- (delete 'sanity-check))))
+ (list
+ #:tests? #f
+ #:phases
+ #~(modify-phases %standard-phases
+ ;; Loading the library fails because DRMAA_LIBRARY_PATH
+ ;; is not configured.
+ (delete 'sanity-check))))
+ (native-inputs (list python-setuptools))
(home-page "https://pypi.org/project/drmaa/")
(synopsis "Python bindings for the DRMAA library")
(description
@@ -13570,11 +13604,11 @@ Python language binding specification.")
(substitute* '("grako/util.py"
"grako/walkers.py")
(("collections\\.Mapping") "collections.abc.Mapping"))))))
- (build-system python-build-system)
- (arguments '(#:tests? #f)) ; Test file 'grako.ebnf' is missing from archive.
- (native-inputs
- (list unzip python-pytest python-pytest-runner))
- (home-page "https://bitbucket.org/neogeny/grako")
+ (build-system pyproject-build-system)
+ ;; XXX: Test file 'grako.ebnf' is missing from archive.
+ (arguments (list #:tests? #f))
+ (native-inputs (list unzip python-pytest python-setuptools))
+ (home-page "https://pypi.org/project/grako")
(synopsis "EBNF parser generator")
(description
"Grako takes a grammar in a variation of EBNF as input, and outputs a
@@ -13639,7 +13673,7 @@ you to actually draw things with your favorite toolkit.")
(define-public python-gridmap
(package
(name "python-gridmap")
- (version "0.14.0")
+ (version "0.15.0")
(source
(origin
(method git-fetch)
@@ -13648,15 +13682,20 @@ you to actually draw things with your favorite toolkit.")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
- (base32 "0v0sgpg6pz8h61f9aqjf5xk0ipr512bbz8dxzjjylksj135qr19l"))))
- (build-system python-build-system)
+ (base32 "0w1sxvhv5ldbzkx70q7036yvny0zsylc4zj7nzmp3nhjdl8whlrm"))))
+ (build-system pyproject-build-system)
(arguments
- '(#:tests? #f ;FIXME: Requires python-cherrypy.
- #:phases (modify-phases %standard-phases
- ;; Importing the web server module requires cherrypy, too.
- (delete 'sanity-check))))
+ (list #:tests? #f ;XXX: freezes or timeout
+ #:test-backend #~'nose))
+ (native-inputs
+ (list ;; python-pynose
+ python-setuptools))
(propagated-inputs
- (list python-psutil python-drmaa python-pyzmq))
+ (list python-cherrypy
+ python-cloudpickle
+ python-psutil
+ python-drmaa
+ python-pyzmq))
(home-page "https://github.com/pygridtools/gridmap")
(synopsis "Create jobs on a cluster directly from Python")
(description