diff options
| author | Ricardo Wurmus <rekado@elephly.net> | 2024-01-24 23:37:37 +0100 |
|---|---|---|
| committer | Ricardo Wurmus <rekado@elephly.net> | 2024-01-24 23:37:37 +0100 |
| commit | 5a99adae1674871c2aac07e89d17ffd45307842d (patch) | |
| tree | 934fb0f08da16482a6d95b41d3399f18567bfeda | |
| parent | db13078c99dae9d1335eabb42b7ee9581f8c832c (diff) | |
python: Add python-etils.
* guix-science/packages/python.scm (python-etils): New variable.
| -rw-r--r-- | guix-science/packages/python.scm | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/guix-science/packages/python.scm b/guix-science/packages/python.scm index d27aa81..143dd5e 100644 --- a/guix-science/packages/python.scm +++ b/guix-science/packages/python.scm | |||
| @@ -33,6 +33,7 @@ | |||
| 33 | #:use-module (gnu packages icu4c) | 33 | #:use-module (gnu packages icu4c) |
| 34 | #:use-module (gnu packages image) | 34 | #:use-module (gnu packages image) |
| 35 | #:use-module (gnu packages java) | 35 | #:use-module (gnu packages java) |
| 36 | #:use-module (gnu packages jupyter) | ||
| 36 | #:use-module (gnu packages linux) | 37 | #:use-module (gnu packages linux) |
| 37 | #:use-module (gnu packages llvm) | 38 | #:use-module (gnu packages llvm) |
| 38 | #:use-module (gnu packages machine-learning) | 39 | #:use-module (gnu packages machine-learning) |
| @@ -44,6 +45,7 @@ | |||
| 44 | #:use-module (gnu packages python) | 45 | #:use-module (gnu packages python) |
| 45 | #:use-module (gnu packages python-build) | 46 | #:use-module (gnu packages python-build) |
| 46 | #:use-module (gnu packages python-check) | 47 | #:use-module (gnu packages python-check) |
| 48 | #:use-module (gnu packages python-compression) | ||
| 47 | #:use-module (gnu packages python-crypto) | 49 | #:use-module (gnu packages python-crypto) |
| 48 | #:use-module (gnu packages python-science) | 50 | #:use-module (gnu packages python-science) |
| 49 | #:use-module (gnu packages python-web) | 51 | #:use-module (gnu packages python-web) |
| @@ -53,6 +55,7 @@ | |||
| 53 | #:use-module (gnu packages statistics) | 55 | #:use-module (gnu packages statistics) |
| 54 | #:use-module (gnu packages tls) | 56 | #:use-module (gnu packages tls) |
| 55 | #:use-module (gnu packages certs) | 57 | #:use-module (gnu packages certs) |
| 58 | #:use-module (gnu packages video) | ||
| 56 | #:use-module (gnu packages) | 59 | #:use-module (gnu packages) |
| 57 | #:use-module (guix build-system gnu) | 60 | #:use-module (guix build-system gnu) |
| 58 | #:use-module (guix build-system python) | 61 | #:use-module (guix build-system python) |
| @@ -129,6 +132,65 @@ utilities.") | |||
| 129 | cleaning up argument parsing scripts.") | 132 | cleaning up argument parsing scripts.") |
| 130 | (license license:expat))) | 133 | (license license:expat))) |
| 131 | 134 | ||
| 135 | ;; This package provides *independent* modules that are meant to be | ||
| 136 | ;; imported selectively. Each module has its own Bazel BUILD file, | ||
| 137 | ;; but no separate pyproject.toml. Bundling everything up as a single | ||
| 138 | ;; package defeats the original purpose. We should probably split | ||
| 139 | ;; this up into as many packages as there are modules. | ||
| 140 | (define-public python-etils | ||
| 141 | (package | ||
| 142 | (name "python-etils") | ||
| 143 | (version "1.5.2") | ||
| 144 | (source | ||
| 145 | (origin | ||
| 146 | (method git-fetch) | ||
| 147 | (uri (git-reference | ||
| 148 | (url "https://github.com/google/etils/") | ||
| 149 | (commit (string-append "v" version)))) | ||
| 150 | (file-name (git-file-name name version)) | ||
| 151 | (sha256 | ||
| 152 | (base32 "1xhnsr4n6dxsn25jiblf5qpk8jj9rgm4yb3gq4zyxffqxd1nlplg")))) | ||
| 153 | (build-system pyproject-build-system) | ||
| 154 | (arguments | ||
| 155 | (list | ||
| 156 | #:test-flags | ||
| 157 | ;; The lazy imports require python-dataclass-array, but that | ||
| 158 | ;; package needs etils at build time. | ||
| 159 | '(list "--ignore=etils/epy/lazy_imports_utils_test.py" | ||
| 160 | ;; This needs internet access | ||
| 161 | "-k" "not test_public_access"))) | ||
| 162 | (inputs (list ffmpeg-5)) ;for mediapy | ||
| 163 | (propagated-inputs | ||
| 164 | (list jupyter | ||
| 165 | python-absl-py | ||
| 166 | python-chex | ||
| 167 | python-dm-tree | ||
| 168 | python-fsspec | ||
| 169 | python-importlib-resources | ||
| 170 | python-jax | ||
| 171 | python-mediapy | ||
| 172 | python-numpy | ||
| 173 | python-optree | ||
| 174 | python-packaging | ||
| 175 | python-protobuf | ||
| 176 | python-pylint | ||
| 177 | python-pytorch | ||
| 178 | python-simple-parsing | ||
| 179 | python-tensorflow | ||
| 180 | python-tqdm | ||
| 181 | python-typing-extensions | ||
| 182 | python-zipp)) | ||
| 183 | (native-inputs | ||
| 184 | (list python-flit-core | ||
| 185 | python-pytest | ||
| 186 | python-pytest-subtests | ||
| 187 | python-pytest-xdist)) | ||
| 188 | (home-page "https://github.com/google/etils/") | ||
| 189 | (synopsis "Collection of common Python utils") | ||
| 190 | (description "This is a collection of independent Python modules | ||
| 191 | providing utilities for various projects.") | ||
| 192 | (license license:asl2.0))) | ||
| 193 | |||
| 132 | (define-public python-morfessor | 194 | (define-public python-morfessor |
| 133 | (package | 195 | (package |
| 134 | (name "python-morfessor") | 196 | (name "python-morfessor") |
