| 1 | |
| 2 | |
| 3 | |
| 4 | |
| 5 | |
| 6 | |
| 7 | |
| 8 | |
| 9 | |
| 10 | |
| 11 | |
| 12 | |
| 13 | |
| 14 | |
| 15 | |
| 16 | |
| 17 | |
| 18 | |
| 19 | |
| 20 | |
| 21 | |
| 22 | |
| 23 | |
| 24 | |
| 25 | |
| 26 | |
| 27 | |
| 28 | |
| 29 | |
| 30 | |
| 31 | |
| 32 | |
| 33 | |
| 34 | |
| 35 | |
| 36 | |
| 37 | |
| 38 | |
| 39 | |
| 40 |
|
| 41 | (define-module (gnu packages python-build)
|
| 42 | #:use-module (gnu packages)
|
| 43 | #:use-module (gnu packages bash)
|
| 44 | #:use-module ((guix licenses) #:prefix license:)
|
| 45 | #:use-module (guix build-system gnu)
|
| 46 | #:use-module (guix build-system python)
|
| 47 | #:use-module (guix build-system pyproject)
|
| 48 | #:use-module (guix gexp)
|
| 49 | #:use-module (guix deprecation)
|
| 50 | #:use-module (guix download)
|
| 51 | #:use-module (guix git-download)
|
| 52 | #:use-module (guix packages))
|
| 53 |
|
| 54 | |
| 55 | |
| 56 | |
| 57 | |
| 58 | |
| 59 | |
| 60 | |
| 61 |
|
| 62 |
|
| 63 | |
| 64 | |
| 65 | |
| 66 | (define-public python-autocommand
|
| 67 | (package
|
| 68 | (name "python-autocommand")
|
| 69 | (version "2.2.2")
|
| 70 | (source
|
| 71 | (origin
|
| 72 | (method url-fetch)
|
| 73 | (uri (pypi-uri "autocommand" version))
|
| 74 | (sha256
|
| 75 | (base32 "0d2zjms5xm236k46la5pnl7i7hs3a12jlp12cw8lk5jm7i1fk3c7"))))
|
| 76 | (build-system pyproject-build-system)
|
| 77 | (native-inputs
|
| 78 | (list python-pytest-bootstrap
|
| 79 | python-setuptools-bootstrap))
|
| 80 | (home-page "https://github.com/Lucretiel/autocommand")
|
| 81 | (synopsis "Python library to build a command-line from a function")
|
| 82 | (description "@code{autocommand} is library to automatically generate and
|
| 83 | run simple @code{argparse} parsers from function signatures.")
|
| 84 | (license license:lgpl3+)))
|
| 85 |
|
| 86 | (define-public python-backports-tarfile
|
| 87 | (package
|
| 88 | (name "python-backports-tarfile")
|
| 89 | (version "1.2.0")
|
| 90 | (source
|
| 91 | (origin
|
| 92 | (method url-fetch)
|
| 93 | (uri (pypi-uri "backports_tarfile" version))
|
| 94 | (sha256
|
| 95 | (base32 "14d9xibla5aahjqf9y0nmpk5vs4qds5rfy628j0invkld3104pnp"))))
|
| 96 | (build-system pyproject-build-system)
|
| 97 | (arguments
|
| 98 | (list #:tests? #f)) |
| 99 | (native-inputs
|
| 100 | (list python-setuptools-bootstrap
|
| 101 | python-setuptools-scm-bootstrap))
|
| 102 | (home-page "https://github.com/jaraco/backports.tarfile")
|
| 103 | (synopsis "Backport of CPython tarfile module")
|
| 104 | (description "This package provides a backport of CPython tarfile module.")
|
| 105 | (license license:expat)))
|
| 106 |
|
| 107 | (define-public python-colorama
|
| 108 | (package
|
| 109 | (name "python-colorama")
|
| 110 | (version "0.4.6")
|
| 111 | (source
|
| 112 | (origin
|
| 113 | (method url-fetch)
|
| 114 | (uri (pypi-uri "colorama" version))
|
| 115 | (sha256
|
| 116 | (base32 "0i3fpq0w5mbfdpy3z9p5raw4fg17jxr6jwh5l8qhavpdnxf5ys88"))))
|
| 117 | (build-system pyproject-build-system)
|
| 118 | (native-inputs
|
| 119 | (list python-hatchling
|
| 120 | python-pytest-bootstrap))
|
| 121 | (home-page "https://pypi.org/project/colorama/")
|
| 122 | (synopsis "Colored terminal text rendering for Python")
|
| 123 | (description
|
| 124 | "Colorama is a Python library for rendering colored terminal text.")
|
| 125 | (license license:bsd-3)))
|
| 126 |
|
| 127 | (define-public python-distlib
|
| 128 | (package
|
| 129 | (name "python-distlib")
|
| 130 | (version "0.3.7")
|
| 131 | (source
|
| 132 | (origin
|
| 133 | (method url-fetch)
|
| 134 | (uri (pypi-uri "distlib" version))
|
| 135 | (sha256
|
| 136 | (base32
|
| 137 | "1a27f5p93j9i1l3324qgahs3g8ai91fmx783jpyyla506i5ybbwx"))))
|
| 138 | (build-system pyproject-build-system)
|
| 139 | (arguments
|
| 140 | (list
|
| 141 | #:phases
|
| 142 | #~(modify-phases %standard-phases
|
| 143 | (add-before 'build 'no-/bin/sh
|
| 144 | (lambda* (#:key inputs #:allow-other-keys)
|
| 145 | (let ((/bin/sh (search-input-file inputs "bin/sh")))
|
| 146 | (substitute* '("distlib/scripts.py" "tests/test_scripts.py")
|
| 147 | (("/bin/sh") /bin/sh)))))
|
| 148 | (add-before 'check 'prepare-test-environment
|
| 149 | (lambda _
|
| 150 | (setenv "HOME" "/tmp")
|
| 151 | |
| 152 | (setenv "SKIP_ONLINE" "1"))))))
|
| 153 | (native-inputs
|
| 154 | (list python-pytest-bootstrap
|
| 155 | python-setuptools-bootstrap))
|
| 156 | (inputs
|
| 157 | (list bash-minimal))
|
| 158 | (home-page "https://github.com/pypa/distlib")
|
| 159 | (synopsis "Distribution utilities")
|
| 160 | (description "Distlib is a library which implements low-level functions that
|
| 161 | relate to packaging and distribution of Python software. It is intended to be
|
| 162 | used as the basis for third-party packaging tools.")
|
| 163 | (license license:psfl)))
|
| 164 |
|
| 165 | (define-public python-more-itertools
|
| 166 | (package
|
| 167 | (name "python-more-itertools")
|
| 168 | (version "10.6.0")
|
| 169 | (source
|
| 170 | (origin
|
| 171 | (method url-fetch)
|
| 172 | (uri (pypi-uri "more-itertools" version))
|
| 173 | (sha256
|
| 174 | (base32
|
| 175 | "0fzfnfga0jdx217kff57lx3pam76162i0dd0nsgwqccw038zmmrc"))
|
| 176 | (snippet
|
| 177 | |
| 178 | |
| 179 | |
| 180 | |
| 181 | '(delete-file "setup.py"))))
|
| 182 | (build-system pyproject-build-system)
|
| 183 | (arguments
|
| 184 | (list
|
| 185 | #:phases
|
| 186 | #~(modify-phases %standard-phases
|
| 187 | (replace 'check
|
| 188 | (lambda* (#:key tests? #:allow-other-keys)
|
| 189 | (when tests?
|
| 190 | (invoke "python" "-m" "unittest")))))))
|
| 191 | (native-inputs
|
| 192 | (list python-flit-core))
|
| 193 | (home-page "https://github.com/erikrose/more-itertools")
|
| 194 | (synopsis "More routines for operating on iterables, beyond itertools")
|
| 195 | (description "Python's built-in @code{itertools} module implements a
|
| 196 | number of iterator building blocks inspired by constructs from APL, Haskell,
|
| 197 | and SML. @code{more-itertools} includes additional building blocks for
|
| 198 | working with iterables.")
|
| 199 | (license license:expat)))
|
| 200 |
|
| 201 | (define-public python-path
|
| 202 | (package
|
| 203 | (name "python-path")
|
| 204 | (version "17.1.0")
|
| 205 | (source
|
| 206 | (origin
|
| 207 | (method url-fetch)
|
| 208 | (uri (pypi-uri "path" version))
|
| 209 | (sha256
|
| 210 | (base32 "1scqbwgcbisx8mb28hw789a7np953851wg6z0bbzdm519znha7nl"))))
|
| 211 | (build-system pyproject-build-system)
|
| 212 | (arguments
|
| 213 | (list
|
| 214 | #:tests? (not (%current-target-system))
|
| 215 | #:test-flags
|
| 216 | #~(list "-k"
|
| 217 | (string-append
|
| 218 | |
| 219 | |
| 220 | "not project "
|
| 221 | |
| 222 | "and not test_get_owner"))))
|
| 223 | (native-inputs
|
| 224 | (list python-more-itertools
|
| 225 | python-packaging-bootstrap
|
| 226 | python-pygments-bootstrap
|
| 227 | python-pytest-bootstrap
|
| 228 | python-setuptools-bootstrap
|
| 229 | python-setuptools-scm-bootstrap))
|
| 230 | (home-page "https://github.com/jaraco/path")
|
| 231 | (synopsis "Object-oriented file system path manipulation library")
|
| 232 | (description "@code{path} (formerly @code{path.py}) implements path
|
| 233 | objects as first-class entities, allowing common operations on files to be
|
| 234 | invoked on those path objects directly.")
|
| 235 | (license license:expat)))
|
| 236 |
|
| 237 | (define-public python-pathspec
|
| 238 | (package
|
| 239 | (name "python-pathspec")
|
| 240 | (version "0.12.1")
|
| 241 | (source
|
| 242 | (origin
|
| 243 | (method url-fetch)
|
| 244 | (uri (pypi-uri "pathspec" version))
|
| 245 | (sha256
|
| 246 | (base32 "04jpkzic8f58z6paq7f3f7fdnlv9l89khv3sqsqk7ax10caxb0m4"))))
|
| 247 | (build-system pyproject-build-system)
|
| 248 | (arguments (list #:test-backend #~'unittest))
|
| 249 | (native-inputs
|
| 250 | (list python-flit-core
|
| 251 | python-setuptools-bootstrap))
|
| 252 | (home-page "https://github.com/cpburnz/python-pathspec")
|
| 253 | (synopsis "Utility library for gitignore style pattern matching of file paths")
|
| 254 | (description
|
| 255 | "This package provides a utility library for gitignore style pattern
|
| 256 | matching of file paths.")
|
| 257 | (license license:mpl2.0)))
|
| 258 |
|
| 259 | (define-public python-platformdirs-bootstrap
|
| 260 | |
| 261 | |
| 262 | (package
|
| 263 | (name "python-platformdirs-bootstrap")
|
| 264 | (version "4.3.6")
|
| 265 | (source
|
| 266 | (origin
|
| 267 | (method url-fetch)
|
| 268 | (uri (pypi-uri "platformdirs" version))
|
| 269 | (sha256
|
| 270 | (base32 "01xrwajkmxv3jp6n14y8jndkrhb48p9kxknkmwch8nw8pjnb4zrm"))))
|
| 271 | (build-system pyproject-build-system)
|
| 272 | (arguments (list #:tests? #f)) |
| 273 | (native-inputs
|
| 274 | (list python-hatchling
|
| 275 | python-hatch-vcs
|
| 276 | python-pytest-bootstrap))
|
| 277 | (home-page "https://github.com/platformdirs/platformdirs")
|
| 278 | (synopsis "Determine the appropriate platform-specific directories")
|
| 279 | (description "When writing applications, finding the right location to
|
| 280 | store user data and configuration varies per platform. Even for
|
| 281 | single-platform apps, there may by plenty of nuances in figuring out the right
|
| 282 | location. This small Python module determines the appropriate
|
| 283 | platform-specific directories, e.g. the ``user data dir''.")
|
| 284 | (license license:expat)))
|
| 285 |
|
| 286 | (define-public python-pluggy
|
| 287 | (package
|
| 288 | (name "python-pluggy")
|
| 289 | (version "1.6.0")
|
| 290 | (source
|
| 291 | (origin
|
| 292 | (method url-fetch)
|
| 293 | (uri (pypi-uri "pluggy" version))
|
| 294 | (sha256
|
| 295 | (base32 "1wr2vnbb7gy9wlz01yvb7rn4iqzd3mwmidk11ywk7395fq5i7k3x"))))
|
| 296 | (build-system pyproject-build-system)
|
| 297 | (native-inputs
|
| 298 | (list python-setuptools-bootstrap
|
| 299 | python-setuptools-scm
|
| 300 | python-wheel))
|
| 301 | (home-page "https://pypi.org/project/pluggy/")
|
| 302 | (synopsis "Plugin and hook calling mechanism for Python")
|
| 303 | (description
|
| 304 | "Pluggy is an extraction of the plugin manager as used by Pytest but
|
| 305 | stripped of Pytest specific details.")
|
| 306 | (license license:expat)))
|
| 307 |
|
| 308 | (define-public python-testpath
|
| 309 | (package
|
| 310 | (name "python-testpath")
|
| 311 | (version "0.6.0")
|
| 312 | (source
|
| 313 | (origin
|
| 314 | (method git-fetch)
|
| 315 | (uri (git-reference
|
| 316 | (url "https://github.com/jupyter/testpath")
|
| 317 | (commit version)))
|
| 318 | (file-name (git-file-name name version))
|
| 319 | (sha256
|
| 320 | (base32
|
| 321 | "0pib1xsvjwwyyhv0sqzxvgg814k83dmv1ppwfkkq9llkhr8k7s9y"))))
|
| 322 | (build-system pyproject-build-system)
|
| 323 | (native-inputs
|
| 324 | (list python-flit-core
|
| 325 | python-pytest-bootstrap))
|
| 326 | (home-page "https://github.com/jupyter/testpath")
|
| 327 | (synopsis "Test utilities for code working with files and commands")
|
| 328 | (description
|
| 329 | "Testpath is a collection of utilities for Python code working with files
|
| 330 | and commands. It contains functions to check things on the file system, and
|
| 331 | tools for mocking system commands and recording calls to those.")
|
| 332 | (license license:expat)))
|
| 333 |
|
| 334 | (define-public python-toml
|
| 335 | (package
|
| 336 | (name "python-toml")
|
| 337 | (version "0.10.2")
|
| 338 | (source
|
| 339 | (origin
|
| 340 | (method url-fetch)
|
| 341 | (uri (pypi-uri "toml" version))
|
| 342 | (sha256
|
| 343 | (base32 "13z6rff86bzdpl094x0vmfvls779931xj90dlbs9kpfm138s3gdk"))))
|
| 344 | (build-system pyproject-build-system)
|
| 345 | (arguments
|
| 346 | `(#:tests? #f)) |
| 347 | (native-inputs
|
| 348 | (list python-setuptools-bootstrap))
|
| 349 | (home-page "https://github.com/uiri/toml")
|
| 350 | (synopsis "Library for TOML")
|
| 351 | (description
|
| 352 | "@code{toml} is a library for parsing and creating Tom's Obvious, Minimal
|
| 353 | Language (TOML) configuration files.")
|
| 354 | (license license:expat)))
|
| 355 |
|
| 356 | (define-public python-tomli-w
|
| 357 | (package
|
| 358 | (name "python-tomli-w")
|
| 359 | (version "1.2.0")
|
| 360 | (source
|
| 361 | (origin
|
| 362 | (method url-fetch)
|
| 363 | (uri (pypi-uri "tomli_w" version))
|
| 364 | (sha256
|
| 365 | (base32 "08ahw9db7qycd4fzh4j51cgzp1rdl7snm5scrplpphj7ban4zl9d"))))
|
| 366 | (build-system pyproject-build-system)
|
| 367 | (arguments (list #:tests? #f)) |
| 368 | (native-inputs (list python-flit-core))
|
| 369 | (home-page "https://github.com/hukkin/tomli-w")
|
| 370 | (synopsis "Minimal TOML writer")
|
| 371 | (description "Tomli-W is a Python library for writing TOML. It is a
|
| 372 | write-only counterpart to Tomli, which is a read-only TOML parser.")
|
| 373 | (license license:expat)))
|
| 374 |
|
| 375 | (define-public python-pygments
|
| 376 | (package
|
| 377 | (name "python-pygments")
|
| 378 | |
| 379 | (version "2.19.1")
|
| 380 | (source
|
| 381 | (origin
|
| 382 | (method url-fetch)
|
| 383 | (uri (pypi-uri "pygments" version))
|
| 384 | (sha256
|
| 385 | (base32
|
| 386 | "07qm8mx3y5r8ri6zpn0hp9zx5g02bydhi7pkv54hdp3nhlm6vhb1"))))
|
| 387 | (build-system pyproject-build-system)
|
| 388 | (arguments
|
| 389 | (list
|
| 390 | #:test-flags
|
| 391 | |
| 392 | |
| 393 | |
| 394 | #~(list "--ignore=tests/contrast/test_contrasts.py"
|
| 395 | |
| 396 | "--ignore=tests/examplefiles/awk/test.awk"
|
| 397 | "--ignore=tests/examplefiles/bash/example.sh"
|
| 398 | "--ignore=tests/examplefiles/make/Makefile"
|
| 399 | "--ignore=tests/examplefiles/phix/example.exw"
|
| 400 | "--ignore=tests/examplefiles/sed/all_sorts_of_syntax.sed"
|
| 401 | "--ignore=tests/examplefiles/sed/count_words.sed"
|
| 402 | "--ignore=tests/examplefiles/sed/increment_number.sed"
|
| 403 | "--ignore=tests/examplefiles/sed/reverse.sed"
|
| 404 | "--ignore=tests/examplefiles/slurm/example.sl"
|
| 405 | |
| 406 | |
| 407 | "--deselect=tests/test_basic_api.py::test_lexer_classes")))
|
| 408 | (native-inputs
|
| 409 | (list python-hatchling python-pytest-bootstrap))
|
| 410 | (home-page "https://pygments.org/")
|
| 411 | (synopsis "Syntax highlighting")
|
| 412 | (description
|
| 413 | "Pygments is a syntax highlighting package written in Python.")
|
| 414 | (license license:bsd-2)))
|
| 415 |
|
| 416 | (define-public python-pygments-bootstrap
|
| 417 | (package/inherit python-pygments
|
| 418 | (name "python-pygments-bootstrap")
|
| 419 | (native-inputs
|
| 420 | (list python-hatchling))
|
| 421 | (arguments `(#:tests? #f))))
|
| 422 |
|
| 423 | (define-public python-pytest-bootstrap
|
| 424 | (package
|
| 425 | (name "python-pytest-bootstrap")
|
| 426 | (version "9.0.2")
|
| 427 | (source
|
| 428 | (origin
|
| 429 | (method url-fetch)
|
| 430 | (uri (pypi-uri "pytest" version))
|
| 431 | (sha256
|
| 432 | (base32 "04fz1vbhb2l6k8lmrk8wqhkxhprlnkq21z6rs48rdn1bm58nc63m"))))
|
| 433 | (build-system pyproject-build-system)
|
| 434 | (arguments (list #:tests? #f))
|
| 435 | (native-inputs
|
| 436 | (list python-setuptools-bootstrap
|
| 437 | python-setuptools-scm-bootstrap))
|
| 438 | (propagated-inputs
|
| 439 | (list python-iniconfig
|
| 440 | python-packaging-bootstrap
|
| 441 | python-pluggy
|
| 442 | python-pygments-bootstrap)) |
| 443 | (home-page "https://docs.pytest.org/en/latest/")
|
| 444 | (synopsis "Python testing library")
|
| 445 | (description
|
| 446 | "Pytest is a testing tool that provides auto-discovery of test modules
|
| 447 | and functions, detailed info on failing assert statements, modular fixtures,
|
| 448 | and many external plugins.")
|
| 449 | (license license:expat)))
|
| 450 |
|
| 451 | (define-public python-pytoml
|
| 452 | (package
|
| 453 | (name "python-pytoml")
|
| 454 | (version "0.1.21")
|
| 455 | (source
|
| 456 | (origin
|
| 457 | (method url-fetch)
|
| 458 | (uri (pypi-uri "pytoml" version))
|
| 459 | (sha256
|
| 460 | (base32 "1rv1byiw82k7mj6aprcrqi2vdabs801y97xhfnrz7kxds34ggv4f"))))
|
| 461 | (build-system pyproject-build-system)
|
| 462 | (arguments `(#:tests? #f)) |
| 463 | (native-inputs
|
| 464 | (list python-setuptools))
|
| 465 | (home-page "https://github.com/avakar/pytoml")
|
| 466 | (synopsis "Parser for TOML")
|
| 467 | (description "This package provides a Python parser for TOML-0.4.0.")
|
| 468 | (license license:expat)))
|
| 469 |
|
| 470 | (define-public python-tomli
|
| 471 | (package
|
| 472 | (name "python-tomli")
|
| 473 | (version "2.2.1")
|
| 474 | (source
|
| 475 | (origin
|
| 476 | (method url-fetch)
|
| 477 | (uri (pypi-uri "tomli" version))
|
| 478 | (sha256
|
| 479 | (base32 "1zq58p2bplyf0xpi9fnyn4w6vc1fkw8whkj0yxhcwdf8g7ff2ifd"))))
|
| 480 | (build-system pyproject-build-system)
|
| 481 | (arguments
|
| 482 | `(#:tests? #f)) |
| 483 | (native-inputs (list python-flit-core-bootstrap))
|
| 484 | (home-page "https://github.com/hukkin/tomli")
|
| 485 | (synopsis "Small and fast TOML parser")
|
| 486 | (description "Tomli is a minimal TOML parser that is fully compatible with
|
| 487 | @url{https://toml.io/en/v1.0.0,TOML v1.0.0}. It is about 2.4 times as fast as
|
| 488 | @code{python-toml}.")
|
| 489 | (license license:expat)))
|
| 490 |
|
| 491 | (define-public python-trove-classifiers
|
| 492 | (package
|
| 493 | (name "python-trove-classifiers")
|
| 494 | (version "2025.5.9.12")
|
| 495 | (source
|
| 496 | (origin
|
| 497 | (method url-fetch)
|
| 498 | (uri (pypi-uri "trove_classifiers" version))
|
| 499 | (sha256
|
| 500 | (base32 "1dawkrcc353rz1h4mazw25vkbhics5lpqrwc8qad6b3flykwi9vw"))))
|
| 501 | (build-system pyproject-build-system)
|
| 502 | (arguments
|
| 503 | (list #:build-backend "setuptools.build_meta"
|
| 504 | #:tests? #f)) |
| 505 | (native-inputs (list python-setuptools-bootstrap))
|
| 506 | (home-page "https://github.com/pypa/trove-classifiers")
|
| 507 | (synopsis "Canonical source for classifiers on PyPI")
|
| 508 | (description "This package is the canonical source for classifiers use on
|
| 509 | PyPI (pypi.org).")
|
| 510 | (license license:asl2.0)))
|
| 511 |
|
| 512 | (define-public python-typeguard
|
| 513 | (package
|
| 514 | (name "python-typeguard")
|
| 515 | (version "4.4.4")
|
| 516 | (source
|
| 517 | (origin
|
| 518 | (method url-fetch)
|
| 519 | (uri (pypi-uri "typeguard" version))
|
| 520 | (sha256
|
| 521 | (base32 "0x2zkskia5lb1838ys0bhpp9v6y80jkhchzdz874spbhzggx4zrs"))))
|
| 522 | (build-system pyproject-build-system)
|
| 523 | (arguments
|
| 524 | (list
|
| 525 | #:test-flags #~(list "--ignore-glob=tests/mypy/*.py")))
|
| 526 | (native-inputs
|
| 527 | (list python-pytest-bootstrap
|
| 528 | python-setuptools-bootstrap
|
| 529 | python-setuptools-scm-bootstrap))
|
| 530 | (propagated-inputs
|
| 531 | (list python-typing-extensions))
|
| 532 | (home-page "https://github.com/agronholm/typeguard")
|
| 533 | (synopsis "Run-time type checker for Python")
|
| 534 | (description
|
| 535 | "@code{typeguard} provides run-time type checking for functions defined
|
| 536 | with PEP 484 argument (and return) type annotations.")
|
| 537 | (license license:expat)))
|
| 538 |
|
| 539 | (define-public python-typing-extensions
|
| 540 | (package
|
| 541 | (name "python-typing-extensions")
|
| 542 | (version "4.15.0")
|
| 543 | (source
|
| 544 | (origin
|
| 545 | (method url-fetch)
|
| 546 | (uri (pypi-uri "typing_extensions" version))
|
| 547 | (sha256
|
| 548 | (base32 "0rhlhs28jndgp9fghdhidn6g7xiwx8vvihxbxhlgl4ncfg8lishc"))))
|
| 549 | (build-system pyproject-build-system)
|
| 550 | |
| 551 | |
| 552 | (arguments (list #:tests? #f))
|
| 553 | (native-inputs (list python-flit-core))
|
| 554 | (home-page "https://github.com/python/typing_extensions")
|
| 555 | (synopsis "Experimental type hints for Python")
|
| 556 | (description
|
| 557 | "The typing_extensions module contains additional @code{typing} hints not
|
| 558 | yet present in the of the @code{typing} standard library.
|
| 559 | Included are implementations of:
|
| 560 | @enumerate
|
| 561 | @item ClassVar
|
| 562 | @item ContextManager
|
| 563 | @item Counter
|
| 564 | @item DefaultDict
|
| 565 | @item Deque
|
| 566 | @item NewType
|
| 567 | @item NoReturn
|
| 568 | @item overload
|
| 569 | @item Protocol
|
| 570 | @item runtime
|
| 571 | @item Text
|
| 572 | @item Type
|
| 573 | @item TYPE_CHECKING
|
| 574 | @item AsyncGenerator
|
| 575 | @end enumerate\n")
|
| 576 | (license license:psfl)))
|
| 577 |
|
| 578 |
|
| 579 | |
| 580 | |
| 581 | |
| 582 | (define-public python-pbr
|
| 583 | (package
|
| 584 | (name "python-pbr")
|
| 585 | (version "7.0.1")
|
| 586 | (source
|
| 587 | (origin
|
| 588 | (method url-fetch)
|
| 589 | (uri (pypi-uri "pbr" version))
|
| 590 | (sha256
|
| 591 | (base32 "0mvy1z1dyl28w0brns1vdhc98hzbn5b3fsw1xj41amdqs88wpjry"))))
|
| 592 | (build-system pyproject-build-system)
|
| 593 | (arguments
|
| 594 | `(#:tests? #f)) |
| 595 | |
| 596 | |
| 597 | |
| 598 | |
| 599 | |
| 600 | |
| 601 | (propagated-inputs
|
| 602 | (list python-setuptools))
|
| 603 | (home-page "https://docs.openstack.org/pbr/latest/")
|
| 604 | (synopsis "Enhance the default behavior of Python’s setuptools")
|
| 605 | (description
|
| 606 | "Python Build Reasonableness (PBR) is a library that injects some useful
|
| 607 | and sensible default behaviors into your setuptools run. It will set
|
| 608 | versions, process requirements files and generate AUTHORS and ChangeLog file
|
| 609 | from git information.")
|
| 610 | (license license:asl2.0)))
|
| 611 |
|
| 612 | (define-public python-pip
|
| 613 | (package
|
| 614 | (name "python-pip")
|
| 615 | (version "25.1.1")
|
| 616 | (source
|
| 617 | (origin
|
| 618 | (method url-fetch)
|
| 619 | (uri (pypi-uri "pip" version))
|
| 620 | (sha256
|
| 621 | (base32
|
| 622 | "0xwhrng91a48zb5qmb6vagbjr6kzvbc8b08nq9a5139h3m0mvr1x"))
|
| 623 | (snippet
|
| 624 | #~(begin
|
| 625 | (delete-file "src/pip/_vendor/certifi/cacert.pem")
|
| 626 | (delete-file "src/pip/_vendor/certifi/core.py")
|
| 627 | (with-output-to-file "src/pip/_vendor/certifi/core.py"
|
| 628 | (lambda _
|
| 629 | (display "\"\"\"
|
| 630 | certifi.py
|
| 631 | ~~~~~~~~~~
|
| 632 | This file is a Guix-specific version of core.py.
|
| 633 |
|
| 634 | This module returns the installation location of SSL_CERT_FILE or
|
| 635 | /etc/ssl/certs/ca-certificates.crt, or its contents.
|
| 636 | \"\"\"
|
| 637 | import os
|
| 638 |
|
| 639 | _CA_CERTS = None
|
| 640 |
|
| 641 | try:
|
| 642 | _CA_CERTS = os.environ [\"SSL_CERT_FILE\"]
|
| 643 | except:
|
| 644 | _CA_CERTS = os.path.join(\"/etc\", \"ssl\", \"certs\", \"ca-certificates.crt\")
|
| 645 |
|
| 646 | def where() -> str:
|
| 647 | return _CA_CERTS
|
| 648 |
|
| 649 | def contents() -> str:
|
| 650 | with open(where(), \"r\", encoding=\"ascii\") as data:
|
| 651 | return data.read()")))))))
|
| 652 | (build-system pyproject-build-system)
|
| 653 | (arguments
|
| 654 | '(#:tests? #f)) |
| 655 | (native-inputs
|
| 656 | (list python-setuptools-bootstrap))
|
| 657 | (home-page "https://pip.pypa.io/")
|
| 658 | (synopsis "Package manager for Python software")
|
| 659 | (description
|
| 660 | "Pip is a package manager for Python software, that finds packages on the
|
| 661 | Python Package Index (PyPI).")
|
| 662 | (license license:expat)))
|
| 663 |
|
| 664 | (define-public python-setuptools
|
| 665 | (package
|
| 666 | (name "python-setuptools")
|
| 667 | |
| 668 | |
| 669 | (version "80.9.0")
|
| 670 | (source
|
| 671 | (origin
|
| 672 | (method url-fetch)
|
| 673 | (uri (pypi-uri "setuptools" version))
|
| 674 | (sha256
|
| 675 | (base32 "175iixi2h2jz8y2bpwziak360hvv43jfhipwzbdniryd5r04fszk"))
|
| 676 | (modules '((guix build utils)))
|
| 677 | (snippet
|
| 678 | #~(begin
|
| 679 | |
| 680 | |
| 681 | (for-each delete-file (find-files "setuptools"
|
| 682 | "^(cli|gui).*\\.exe$"))))))
|
| 683 | (build-system pyproject-build-system)
|
| 684 | (arguments
|
| 685 | (list
|
| 686 | #:test-flags
|
| 687 | #~(list
|
| 688 | |
| 689 | "--ignore=setuptools/tests/config/test_apply_pyprojecttoml.py"
|
| 690 | "--ignore=setuptools/tests/config/test_pyprojecttoml.py"
|
| 691 | "--ignore=setuptools/tests/test_namespaces.py" |
| 692 | "--ignore=tools"
|
| 693 | |
| 694 | "-m" "not uses_network"
|
| 695 | "-k" (string-join
|
| 696 | (list "not test_dist_fetch_build_egg" |
| 697 | |
| 698 | "test_wheel_includes_cli_scripts"
|
| 699 | |
| 700 | |
| 701 | |
| 702 | "test_no_missing_dependencies"
|
| 703 | |
| 704 | |
| 705 | "test_ignore_errors"
|
| 706 | |
| 707 | "test_basic")
|
| 708 | " and not "))
|
| 709 | #:phases
|
| 710 | #~(modify-phases %standard-phases
|
| 711 | |
| 712 | (add-before 'build 'build-bundled-wheel-for-tests
|
| 713 | (assoc-ref %standard-phases 'build))
|
| 714 | (add-after 'build-bundled-wheel-for-tests 'cleanup
|
| 715 | (lambda _
|
| 716 | (let ((wheel (string-append "setuptools-" #$version
|
| 717 | "-py3-none-any.whl")))
|
| 718 | (for-each
|
| 719 | (lambda (file)
|
| 720 | (rename-file file wheel))
|
| 721 | (find-files "dist" "\\.whl$")))
|
| 722 | (for-each delete-file-recursively
|
| 723 | '("build" "dist" "setuptools/_vendor")))) |
| 724 | (add-before 'check 'configure-tests
|
| 725 | (lambda* (#:key outputs #:allow-other-keys)
|
| 726 | (setenv "HOME" (getcwd))
|
| 727 | |
| 728 | (setenv "PYTHONPATH" (getenv "GUIX_PYTHONPATH"))
|
| 729 | |
| 730 | (setenv "PRE_BUILT_SETUPTOOLS_WHEEL"
|
| 731 | (string-append (getcwd) "/setuptools-"
|
| 732 | #$version "-py3-none-any.whl"))))
|
| 733 | |
| 734 | |
| 735 | |
| 736 | (add-before 'compile-bytecode 'drop-platformdirs-requirement
|
| 737 | (lambda* (#:key inputs outputs #:allow-other-keys)
|
| 738 | (with-directory-excursion (site-packages inputs outputs)
|
| 739 | (substitute* "pkg_resources/__init__.py"
|
| 740 | (("^from platformdirs import.*")
|
| 741 | "")
|
| 742 | (("_user_cache_dir\\(appname='Python-Eggs'\\)")
|
| 743 | "f\"{os.environ.get('XDG_CACHE_HOME')}/Python-Eggs\""))
|
| 744 | (substitute* (string-append "setuptools-" #$version
|
| 745 | ".dist-info/METADATA")
|
| 746 | (("Requires-Dist: platformdirs.*") "")))))
|
| 747 | (add-after 'check 'cleanup-installed-tests
|
| 748 | (lambda* (#:key inputs outputs #:allow-other-keys)
|
| 749 | (let ((site (site-packages inputs outputs)))
|
| 750 | (with-directory-excursion site
|
| 751 | (for-each
|
| 752 | delete-file-recursively
|
| 753 | (find-files "."
|
| 754 | (lambda (file stat)
|
| 755 | (and (string= (basename file) "tests")
|
| 756 | (eq? 'directory
|
| 757 | (stat:type stat))))
|
| 758 | #:directories? #t)))
|
| 759 | (substitute* (find-files site "RECORD")
|
| 760 | ((".*/tests/.*") ""))))))))
|
| 761 | (propagated-inputs
|
| 762 | |
| 763 | (list python-jaraco-functools
|
| 764 | python-jaraco-text
|
| 765 | python-more-itertools
|
| 766 | python-packaging
|
| 767 | python-wheel))
|
| 768 | (native-inputs
|
| 769 | (list python-autocommand
|
| 770 | python-backports-tarfile
|
| 771 | python-filelock-bootstrap
|
| 772 | python-inflect
|
| 773 | python-jaraco-collections
|
| 774 | python-jaraco-context
|
| 775 | python-jaraco-envs-bootstrap
|
| 776 | python-jaraco-functools
|
| 777 | python-jaraco-path
|
| 778 | python-jaraco-test
|
| 779 | python-jaraco-text
|
| 780 | python-more-itertools
|
| 781 | python-packaging
|
| 782 | python-path
|
| 783 | python-platformdirs-bootstrap
|
| 784 | python-pip
|
| 785 | python-pypa-build
|
| 786 | python-pytest-bootstrap
|
| 787 | python-tomli
|
| 788 | python-typing-extensions
|
| 789 | python-typeguard
|
| 790 | python-wheel))
|
| 791 | (home-page "https://pypi.org/project/setuptools/")
|
| 792 | (synopsis "Library designed to facilitate packaging Python projects")
|
| 793 | (description "Setuptools is a fully-featured, stable library designed to
|
| 794 | facilitate packaging Python projects, where packaging includes:
|
| 795 | @itemize
|
| 796 | @item Python package and module definitions
|
| 797 | @item distribution package metadata
|
| 798 | @item test hooks
|
| 799 | @item project installation
|
| 800 | @item platform-specific details.
|
| 801 | @end itemize")
|
| 802 | (license (list license:psfl |
| 803 | license:expat |
| 804 | license:asl2.0 |
| 805 | license:bsd-2))))
|
| 806 |
|
| 807 | (define-public python-setuptools-bootstrap
|
| 808 | (package/inherit python-setuptools
|
| 809 | (name "python-setuptools-bootstrap")
|
| 810 | |
| 811 | |
| 812 | |
| 813 | (version "80.9.0")
|
| 814 | (source
|
| 815 | (origin
|
| 816 | (method url-fetch)
|
| 817 | (uri (pypi-uri "setuptools" version))
|
| 818 | (sha256
|
| 819 | (base32 "175iixi2h2jz8y2bpwziak360hvv43jfhipwzbdniryd5r04fszk"))
|
| 820 | (modules '((guix build utils)))
|
| 821 | (snippet
|
| 822 | |
| 823 | |
| 824 | |
| 825 | |
| 826 | '(for-each delete-file (find-files "setuptools"
|
| 827 | "^(cli|gui).*\\.exe$")))))
|
| 828 | (build-system gnu-build-system)
|
| 829 | (arguments
|
| 830 | (list
|
| 831 | #:tests? #f |
| 832 | |
| 833 | |
| 834 | |
| 835 | #:phases
|
| 836 | #~(modify-phases %standard-phases
|
| 837 | (delete 'bootstrap)
|
| 838 | (delete 'configure)
|
| 839 | (replace 'build
|
| 840 | (lambda _
|
| 841 | (invoke "python" "./setup.py" "build")))
|
| 842 | (replace 'install
|
| 843 | (lambda _
|
| 844 | (invoke "python" "./setup.py" "install"
|
| 845 | (string-append "--prefix=" #$output) "--no-compile")
|
| 846 | (invoke "python" "-m" "compileall"
|
| 847 | "--invalidation-mode=unchecked-hash" #$output)))
|
| 848 | |
| 849 | |
| 850 | (add-after 'install 'fix-installation
|
| 851 | (lambda* (#:key outputs #:allow-other-keys)
|
| 852 | (with-directory-excursion
|
| 853 | (car (find-files #$output "site-packages"
|
| 854 | #:directories? #t))
|
| 855 | (call-with-output-file "distutils-precedence.pth"
|
| 856 | (lambda (port)
|
| 857 | (display
|
| 858 | (string-join
|
| 859 | '("import os"
|
| 860 | "var = 'SETUPTOOLS_USE_DISTUTILS'"
|
| 861 | "enabled = os.environ.get(var, 'local') == 'local'"
|
| 862 | "enabled and __import__('_distutils_hack').add_shim();")
|
| 863 | "; ")
|
| 864 | port)))))))))
|
| 865 | (native-inputs (list))
|
| 866 | |
| 867 | (inputs (list (module-ref (resolve-interface '(gnu packages python))
|
| 868 | 'python-wrapper)))
|
| 869 | (propagated-inputs (list))))
|
| 870 |
|
| 871 | (define-public python-wheel
|
| 872 | (package
|
| 873 | (name "python-wheel")
|
| 874 | (version "0.46.1")
|
| 875 | (source
|
| 876 | (origin
|
| 877 | (method url-fetch)
|
| 878 | (uri (pypi-uri "wheel" version))
|
| 879 | (sha256
|
| 880 | (base32 "0f3abrpkf3spv0lk5mhv8m2ch0j074a3rivn7hfxzxx0bpxpwizx"))))
|
| 881 | (build-system pyproject-build-system)
|
| 882 | (arguments
|
| 883 | |
| 884 | |
| 885 | |
| 886 | '(#:tests? #f))
|
| 887 | (native-inputs
|
| 888 | (list python-flit-core))
|
| 889 | (home-page "https://github.com/pypa/wheel")
|
| 890 | (synopsis "Format for built Python packages")
|
| 891 | (description
|
| 892 | "A wheel is a ZIP-format archive with a specially formatted filename and
|
| 893 | the @code{.whl} extension. It is designed to contain all the files for a PEP
|
| 894 | 376 compatible install in a way that is very close to the on-disk format. Many
|
| 895 | packages will be properly installed with only the @code{Unpack} step and the
|
| 896 | unpacked archive preserves enough information to @code{Spread} (copy data and
|
| 897 | scripts to their final locations) at any later time. Wheel files can be
|
| 898 | installed with a newer @code{pip} or with wheel's own command line utility.")
|
| 899 | (license license:expat)))
|
| 900 |
|
| 901 | (define-public python-wheel-0.40
|
| 902 | (package
|
| 903 | (inherit python-wheel)
|
| 904 | (version "0.40.0")
|
| 905 | (source
|
| 906 | (origin
|
| 907 | (method url-fetch)
|
| 908 | (uri (pypi-uri "wheel" version))
|
| 909 | (sha256
|
| 910 | (base32 "0ww8fgkvwv35ypj4cnngczdwp6agr4qifvk2inb32azfzbrrc4fd"))))))
|
| 911 |
|
| 912 | (define-public python-pyparsing
|
| 913 | (package
|
| 914 | (name "python-pyparsing")
|
| 915 | (version "3.2.3")
|
| 916 | (source
|
| 917 | (origin
|
| 918 | (method url-fetch)
|
| 919 | (uri (pypi-uri "pyparsing" version))
|
| 920 | (sha256
|
| 921 | (base32 "1giqgjknzbbh34qf8ij5rsrqlxfysjx39xi85vvl5ddkp0d3zhdr"))))
|
| 922 | (build-system pyproject-build-system)
|
| 923 | (outputs '("out" "doc"))
|
| 924 | (arguments
|
| 925 | `(#:tests? #f |
| 926 | #:phases
|
| 927 | (modify-phases %standard-phases
|
| 928 | (add-after 'install 'install-doc
|
| 929 | (lambda* (#:key outputs #:allow-other-keys)
|
| 930 | (let* ((doc (string-append (assoc-ref outputs "doc")
|
| 931 | "/share/doc/" ,name "-" ,version))
|
| 932 | (html-doc (string-append doc "/html"))
|
| 933 | (examples (string-append doc "/examples")))
|
| 934 | (mkdir-p html-doc)
|
| 935 | (mkdir-p examples)
|
| 936 | (for-each
|
| 937 | (lambda (dir tgt)
|
| 938 | (map (lambda (file)
|
| 939 | (install-file file tgt))
|
| 940 | (find-files dir ".*")))
|
| 941 | (list "docs" "htmldoc" "examples")
|
| 942 | (list doc html-doc examples))))))))
|
| 943 | (native-inputs (list python-flit-core))
|
| 944 | (home-page "https://github.com/pyparsing/pyparsing")
|
| 945 | (synopsis "Python parsing class library")
|
| 946 | (description
|
| 947 | "The pyparsing module is an alternative approach to creating and
|
| 948 | executing simple grammars, vs. the traditional lex/yacc approach, or the use
|
| 949 | of regular expressions. The pyparsing module provides a library of classes
|
| 950 | that client code uses to construct the grammar directly in Python code.")
|
| 951 | (license license:expat)))
|
| 952 |
|
| 953 | (define-public python-packaging
|
| 954 | (package
|
| 955 | (name "python-packaging")
|
| 956 | (version "25.0")
|
| 957 | (source
|
| 958 | (origin
|
| 959 | (method url-fetch)
|
| 960 | (uri (pypi-uri "packaging" version))
|
| 961 | (sha256
|
| 962 | (base32 "0kzwn2ar4ndm90qrvgyjcbkqz3klrg0ziwm1yrhbyxynk0n8fhyl"))))
|
| 963 | (build-system pyproject-build-system)
|
| 964 | (native-inputs
|
| 965 | (list python-flit-core
|
| 966 | python-pretend
|
| 967 | python-pytest-bootstrap))
|
| 968 | (propagated-inputs (list python-pyparsing python-six))
|
| 969 | (home-page "https://github.com/pypa/packaging")
|
| 970 | (synopsis "Core utilities for Python packages")
|
| 971 | (description "Packaging is a Python module for dealing with Python packages.
|
| 972 | It offers an interface for working with package versions, names, and dependency
|
| 973 | information.")
|
| 974 | |
| 975 | |
| 976 | |
| 977 | |
| 978 | (license (list license:asl2.0 license:bsd-2))))
|
| 979 |
|
| 980 | (define-public python-packaging-bootstrap
|
| 981 | (package/inherit python-packaging
|
| 982 | (name "python-packaging-bootstrap")
|
| 983 | (arguments
|
| 984 | |
| 985 | (list
|
| 986 | #:tests? #f))
|
| 987 | (native-inputs (list python-flit-core))
|
| 988 | (propagated-inputs '())))
|
| 989 |
|
| 990 | (define-public python-pretend
|
| 991 | (package
|
| 992 | (name "python-pretend")
|
| 993 | (version "1.0.9")
|
| 994 | (source
|
| 995 | (origin
|
| 996 | (method git-fetch) |
| 997 | (uri (git-reference
|
| 998 | (url "https://github.com/alex/pretend")
|
| 999 | (commit (string-append "v" version))))
|
| 1000 | (file-name (git-file-name name version))
|
| 1001 | (sha256
|
| 1002 | (base32 "156l685r9mg7i4xyrk9ql3sxk088irxlg8x7md5i0d05hdw1z8rs"))))
|
| 1003 | (build-system pyproject-build-system)
|
| 1004 | (native-inputs
|
| 1005 | (list python-packaging-bootstrap
|
| 1006 | python-pytest-bootstrap
|
| 1007 | python-setuptools-bootstrap))
|
| 1008 | (home-page "https://github.com/alex/pretend")
|
| 1009 | (synopsis "Library for stubbing in Python")
|
| 1010 | (description
|
| 1011 | "Pretend is a library to make stubbing with Python easier. Stubbing is a
|
| 1012 | technique for writing tests. You may hear the term mixed up with mocks,fakes,
|
| 1013 | or doubles. Basically, a stub is an object that returns pre-canned responses,
|
| 1014 | rather than doing any computation.")
|
| 1015 | (license license:bsd-3)))
|
| 1016 |
|
| 1017 | (define-public python-pyproject-hooks
|
| 1018 | (package
|
| 1019 | (name "python-pyproject-hooks")
|
| 1020 | (version "1.2.0")
|
| 1021 | (source
|
| 1022 | (origin
|
| 1023 | (method url-fetch)
|
| 1024 | (uri (pypi-uri "pyproject_hooks" version))
|
| 1025 | (sha256
|
| 1026 | (base32 "1y511nblr0lslz1d5s46844f5raryjnp3n1dci499bhgqkarp18y"))))
|
| 1027 | (build-system pyproject-build-system)
|
| 1028 | (native-inputs
|
| 1029 | (list python-flit-core
|
| 1030 | python-pytest-bootstrap
|
| 1031 | python-testpath))
|
| 1032 | (home-page "https://github.com/pypa/pyproject-hooks")
|
| 1033 | (synopsis "Low-level library for calling @file{pyproject.toml} backends")
|
| 1034 | (description
|
| 1035 | "@code{pyproject-hooks} is a low-level library for calling build backends
|
| 1036 | in @file{pyproject.toml}-based projects. It provides basic functionality to
|
| 1037 | write tooling that generates distribution files from Python projects.")
|
| 1038 | (license license:expat)))
|
| 1039 |
|
| 1040 | |
| 1041 | |
| 1042 | (define-public python-pypa-build
|
| 1043 | (package
|
| 1044 | (name "python-pypa-build")
|
| 1045 | |
| 1046 | (version "1.3.0")
|
| 1047 | (source
|
| 1048 | (origin
|
| 1049 | (method url-fetch)
|
| 1050 | (uri (pypi-uri "build" version))
|
| 1051 | (sha256
|
| 1052 | (base32 "15xk0w71x8v1c8by049rdwh74mhkl3rj3v9sym8fkgbhl87dv3k9"))))
|
| 1053 | (build-system pyproject-build-system)
|
| 1054 | (arguments `(#:tests? #f)) |
| 1055 | (native-inputs
|
| 1056 | (list python-flit-core))
|
| 1057 | (propagated-inputs
|
| 1058 | (list python-colorama
|
| 1059 | python-packaging
|
| 1060 | python-pyproject-hooks
|
| 1061 | python-tomli))
|
| 1062 | (home-page "https://pypa-build.readthedocs.io/en/latest/")
|
| 1063 | (synopsis "Simple Python PEP 517 package builder")
|
| 1064 | (description "The @command{build} command invokes the PEP 517 hooks to
|
| 1065 | build a distribution package. It is a simple build tool and does not perform
|
| 1066 | any dependency management. It aims to keep dependencies to a minimum, in
|
| 1067 | order to make bootstrapping easier.")
|
| 1068 | (license license:expat)))
|
| 1069 |
|
| 1070 | |
| 1071 | |
| 1072 | (define-public python-pypa-installer
|
| 1073 | (package
|
| 1074 | (name "python-pypa-installer")
|
| 1075 | (version "0.7.0")
|
| 1076 | (source
|
| 1077 | (origin
|
| 1078 | (method url-fetch)
|
| 1079 | (uri (pypi-uri "installer" version))
|
| 1080 | (sha256
|
| 1081 | (base32 "0cdnqh3a3amw8k4s1pzfjh0hpvzw4pczgl702s1b16r82qqkwvd2"))))
|
| 1082 | (build-system pyproject-build-system)
|
| 1083 | (arguments
|
| 1084 | (list
|
| 1085 | #:tests? #f)) |
| 1086 | (native-inputs
|
| 1087 | (list python-flit-core))
|
| 1088 | (home-page "https://installer.readthedocs.io/")
|
| 1089 | (synopsis "low-level library for installing from a Python wheel distribution")
|
| 1090 | (description
|
| 1091 | "This package provides a library for installing Python wheels.")
|
| 1092 | (license license:expat)))
|
| 1093 |
|
| 1094 | (define-public python-poetry-core
|
| 1095 | (package
|
| 1096 | (name "python-poetry-core")
|
| 1097 | (version "2.1.3")
|
| 1098 | (source
|
| 1099 | (origin
|
| 1100 | (method url-fetch)
|
| 1101 | (uri (pypi-uri "poetry_core" version))
|
| 1102 | (sha256
|
| 1103 | (base32 "194nwaig8zkbj2ig4zwf1k7cl4vqlmvs8mmdkb425mky8was08h5"))))
|
| 1104 | (build-system pyproject-build-system)
|
| 1105 | (arguments
|
| 1106 | `(#:tests? #f)) |
| 1107 | (home-page "https://github.com/python-poetry/poetry-core")
|
| 1108 | (synopsis "Poetry PEP 517 build back-end")
|
| 1109 | (description
|
| 1110 | "The @code{poetry-core} module provides a PEP 517 build back-end
|
| 1111 | implementation developed for Poetry. This project is intended to be
|
| 1112 | a light weight, fully compliant, self-contained package allowing PEP 517
|
| 1113 | compatible build front-ends to build Poetry managed projects.")
|
| 1114 | (license license:expat)))
|
| 1115 |
|
| 1116 | (define-public python-filelock-bootstrap
|
| 1117 | |
| 1118 | |
| 1119 | (package
|
| 1120 | (name "python-filelock-bootstrap")
|
| 1121 | (version "3.16.1")
|
| 1122 | (source
|
| 1123 | (origin
|
| 1124 | (method url-fetch)
|
| 1125 | (uri (pypi-uri "filelock" version))
|
| 1126 | (sha256
|
| 1127 | (base32
|
| 1128 | "0d8ljvmsfgriiqf5dqii91gfcpj7cpjrh8fnsvifaiyvspygnjf2"))))
|
| 1129 | (build-system pyproject-build-system)
|
| 1130 | (arguments (list #:tests? #f)) |
| 1131 | (native-inputs
|
| 1132 | (list python-hatch-vcs-bootstrap
|
| 1133 | python-hatchling
|
| 1134 | python-setuptools-scm-bootstrap))
|
| 1135 | (home-page "https://github.com/tox-dev/py-filelock")
|
| 1136 | (synopsis "Platform independent file lock")
|
| 1137 | (description "@code{filelock} contains a single module implementing
|
| 1138 | a platform independent file lock in Python, which provides a simple way of
|
| 1139 | inter-process communication.")
|
| 1140 | (license license:unlicense)))
|
| 1141 |
|
| 1142 | |
| 1143 | (define-public python-flit-core-bootstrap
|
| 1144 | (package
|
| 1145 | (name "python-flit-core-bootstrap")
|
| 1146 | (version "3.12.0")
|
| 1147 | (source
|
| 1148 | (origin
|
| 1149 | (method url-fetch)
|
| 1150 | (uri (pypi-uri "flit" version))
|
| 1151 | (sha256
|
| 1152 | (base32 "0h1pxi2hgr95321bgl45l86693zl14l3shj0idsyg4k9v56z700w"))))
|
| 1153 | (build-system pyproject-build-system)
|
| 1154 | (arguments
|
| 1155 | (list
|
| 1156 | |
| 1157 | |
| 1158 | #:tests? #f
|
| 1159 | #:phases
|
| 1160 | #~(modify-phases %standard-phases
|
| 1161 | (add-after 'unpack 'fix-license
|
| 1162 | |
| 1163 | |
| 1164 | |
| 1165 | (lambda _
|
| 1166 | (delete-file-recursively "flit_core/flit_core/vendor")
|
| 1167 | (substitute* "flit_core/pyproject.toml"
|
| 1168 | (("license-files.*") "license-files = [\"LICENSE*\"]\n"))))
|
| 1169 | (replace 'build
|
| 1170 | |
| 1171 | |
| 1172 | |
| 1173 | (lambda _
|
| 1174 | (chdir "flit_core")
|
| 1175 | (invoke "python" "build_dists.py")))
|
| 1176 | (delete 'sanity-check))))
|
| 1177 | (propagated-inputs
|
| 1178 | (list python-toml))
|
| 1179 | (home-page "https://github.com/pypa/flit")
|
| 1180 | (synopsis "Core package of the Flit Python build system")
|
| 1181 | (description "This package provides @code{flit-core}, a PEP 517 build
|
| 1182 | backend for packages using Flit. The only public interface is the API
|
| 1183 | specified by PEP 517, @code{flit_core.buildapi}.")
|
| 1184 | (license license:bsd-3)))
|
| 1185 |
|
| 1186 | (define-public python-flit-core
|
| 1187 | (package/inherit python-flit-core-bootstrap
|
| 1188 | (name "python-flit-core")
|
| 1189 | (propagated-inputs
|
| 1190 | (modify-inputs (package-propagated-inputs python-flit-core-bootstrap)
|
| 1191 | (delete "python-toml")
|
| 1192 | (prepend python-tomli)))))
|
| 1193 |
|
| 1194 | (define-public python-flit-scm
|
| 1195 | (package
|
| 1196 | (name "python-flit-scm")
|
| 1197 | (version "1.7.0")
|
| 1198 | (source
|
| 1199 | (origin
|
| 1200 | (method url-fetch)
|
| 1201 | (uri (pypi-uri "flit_scm" version))
|
| 1202 | (sha256
|
| 1203 | (base32 "1ckbkykfr7f7wzjzgh0gm7h6v3pqzx2l28rw6dsvl6zk4kxxc6wn"))))
|
| 1204 | (build-system pyproject-build-system)
|
| 1205 | (arguments
|
| 1206 | (list
|
| 1207 | #:tests? #f |
| 1208 | #:phases
|
| 1209 | #~(modify-phases %standard-phases
|
| 1210 | (add-after 'unpack 'fix-backend
|
| 1211 | |
| 1212 | |
| 1213 | |
| 1214 | |
| 1215 | |
| 1216 | |
| 1217 | |
| 1218 | (lambda _
|
| 1219 | (substitute* "pyproject.toml"
|
| 1220 | (("flit_scm:buildapi") "flit_core.buildapi")))))))
|
| 1221 | (propagated-inputs
|
| 1222 | (list python-flit-core
|
| 1223 | python-setuptools-scm
|
| 1224 | python-tomli))
|
| 1225 | (home-page "https://gitlab.com/WillDaSilva/flit_scm")
|
| 1226 | (synopsis "PEP 518 build backend combining flit_core and setuptools_scm")
|
| 1227 | (description "This package provides a PEP 518 build backend that uses
|
| 1228 | @code{setuptools_scm} to generate a version file from your version control
|
| 1229 | system, then @code{flit_core} to build the package.")
|
| 1230 | (license license:expat)))
|
| 1231 |
|
| 1232 | (define-public python-setuptools-scm
|
| 1233 | (package
|
| 1234 | (name "python-setuptools-scm")
|
| 1235 | (version "8.3.1")
|
| 1236 | (source
|
| 1237 | (origin
|
| 1238 | (method url-fetch)
|
| 1239 | (uri (pypi-uri "setuptools_scm" version))
|
| 1240 | (sha256
|
| 1241 | (base32 "0qra4jysbdwlrwsb5iz8kai1xxbsz6adzbrbscvx1b2xny95wm9x"))))
|
| 1242 | (build-system pyproject-build-system)
|
| 1243 | (arguments
|
| 1244 | (list
|
| 1245 | #:tests? #f |
| 1246 | |
| 1247 | |
| 1248 | #:build-backend "setuptools.build_meta"))
|
| 1249 | (propagated-inputs
|
| 1250 | (list python-packaging-bootstrap
|
| 1251 | python-setuptools-bootstrap))
|
| 1252 | (home-page "https://github.com/pypa/setuptools_scm/")
|
| 1253 | (synopsis "Manage Python package versions in SCM metadata")
|
| 1254 | (description
|
| 1255 | "Setuptools_scm handles managing your Python package versions in
|
| 1256 | @dfn{software configuration management} (SCM) metadata instead of declaring
|
| 1257 | them as the version argument or in a SCM managed file.")
|
| 1258 | (license license:expat)))
|
| 1259 |
|
| 1260 | (define-public python-setuptools-scm-bootstrap
|
| 1261 | (package/inherit python-setuptools-scm
|
| 1262 | (name "python-setuptools-scm-bootstrap")
|
| 1263 | (build-system pyproject-build-system)
|
| 1264 | (arguments
|
| 1265 | (list
|
| 1266 | #:tests? #f |
| 1267 | |
| 1268 | |
| 1269 | #:build-backend "setuptools.build_meta"))
|
| 1270 | (native-inputs
|
| 1271 | (list python-packaging-bootstrap))
|
| 1272 | (propagated-inputs
|
| 1273 | (list python-setuptools-bootstrap))))
|
| 1274 |
|
| 1275 | (define-public python-setuptools-scm-next
|
| 1276 | (package
|
| 1277 | (inherit python-setuptools-scm)
|
| 1278 | (name "python-setuptools-scm")
|
| 1279 | (version "9.2.2")
|
| 1280 | (source
|
| 1281 | (origin
|
| 1282 | (method url-fetch)
|
| 1283 | (uri (pypi-uri "setuptools_scm" version))
|
| 1284 | (sha256
|
| 1285 | (base32 "0mzgyyg1cgigkmlfm0iy44f2092zn8xc093ygn4a11jncss4lrqw"))))))
|
| 1286 |
|
| 1287 | (define-public python-six
|
| 1288 | (package
|
| 1289 | (name "python-six")
|
| 1290 | (version "1.17.0")
|
| 1291 | (source
|
| 1292 | (origin
|
| 1293 | (method url-fetch)
|
| 1294 | (uri (pypi-uri "six" version))
|
| 1295 | (sha256
|
| 1296 | (base32 "109ajcsfhrz33lbwbb337w34crc3lb9rjnxrcpnbczlf8rfk6w7z"))))
|
| 1297 | (build-system pyproject-build-system)
|
| 1298 | (native-inputs
|
| 1299 | (list python-pytest-bootstrap
|
| 1300 | python-setuptools-bootstrap))
|
| 1301 | (home-page "https://pypi.org/project/six/")
|
| 1302 | (synopsis "Python 2 and 3 compatibility utilities")
|
| 1303 | (description
|
| 1304 | "Six is a Python 2 and 3 compatibility library. It provides utility
|
| 1305 | functions for smoothing over the differences between the Python versions with
|
| 1306 | the goal of writing Python code that is compatible on both Python versions.
|
| 1307 | Six supports every Python version since 2.5. It is contained in only one
|
| 1308 | Python file, so it can be easily copied into your project.")
|
| 1309 | (license license:x11)))
|
| 1310 |
|
| 1311 | |
| 1312 | (define-deprecated/public-alias python-six-bootstrap python-six)
|
| 1313 |
|
| 1314 | (define-public python-editables
|
| 1315 | (package
|
| 1316 | (name "python-editables")
|
| 1317 | (version "0.5")
|
| 1318 | (source (origin
|
| 1319 | (method git-fetch)
|
| 1320 | (uri (git-reference
|
| 1321 | (url "https://github.com/pfmoore/editables")
|
| 1322 | (commit version)))
|
| 1323 | (file-name (git-file-name name version))
|
| 1324 | (sha256
|
| 1325 | (base32
|
| 1326 | "1bp959fz987jvrnkilhyr41fw4g00g9jfyiwmfvy96hv1yl68w8b"))))
|
| 1327 | (build-system pyproject-build-system)
|
| 1328 | (arguments (list #:tests? #f)) |
| 1329 | (native-inputs
|
| 1330 | (list python-flit-core))
|
| 1331 | (home-page "https://github.com/pfmoore/editables")
|
| 1332 | (synopsis "Editable installations")
|
| 1333 | (description "This library supports the building of wheels which, when
|
| 1334 | installed, will expose packages in a local directory on @code{sys.path} in
|
| 1335 | ``editable mode''. In other words, changes to the package source will be
|
| 1336 | reflected in the package visible to Python, without needing a reinstall.")
|
| 1337 | (license license:expat)))
|
| 1338 |
|
| 1339 | |
| 1340 | (define-public python-exceptiongroup
|
| 1341 | (package
|
| 1342 | (name "python-exceptiongroup")
|
| 1343 | (version "1.3.0")
|
| 1344 | (source
|
| 1345 | (origin
|
| 1346 | (method git-fetch)
|
| 1347 | (uri (git-reference
|
| 1348 | (url "https://github.com/agronholm/exceptiongroup")
|
| 1349 | (commit version)))
|
| 1350 | (file-name (git-file-name name version))
|
| 1351 | (sha256
|
| 1352 | (base32 "1kygngc6j7hm68w8q327jvym2z4gpyh93g2af6g419qaqqv7axkg"))))
|
| 1353 | (build-system pyproject-build-system)
|
| 1354 | (arguments
|
| 1355 | (list
|
| 1356 | #:tests? #f |
| 1357 | #:build-backend "setuptools.build_meta"))
|
| 1358 | (native-inputs
|
| 1359 | (list python-flit-scm))
|
| 1360 | (propagated-inputs
|
| 1361 | (list python-typing-extensions))
|
| 1362 | (home-page "https://github.com/agronholm/exceptiongroup")
|
| 1363 | (synopsis "PEP 654 backport from Python 3.11")
|
| 1364 | (description "This is a backport of the @code{BaseExceptionGroup} and
|
| 1365 | @code{ExceptionGroup} classes from Python 3.11.")
|
| 1366 | (license license:expat)))
|
| 1367 |
|
| 1368 | (define-public python-hatchling
|
| 1369 | (package
|
| 1370 | (name "python-hatchling")
|
| 1371 | (version "1.27.0")
|
| 1372 | (source
|
| 1373 | (origin
|
| 1374 | (method url-fetch)
|
| 1375 | (uri (pypi-uri "hatchling" version))
|
| 1376 | (sha256
|
| 1377 | (base32 "1mhzjhg7ky8npcrnbwwq30w8s73mm73m5z0j260v7aqrk1njj74p"))))
|
| 1378 | (build-system pyproject-build-system)
|
| 1379 | (arguments
|
| 1380 | (list #:tests? #f)) |
| 1381 | (propagated-inputs
|
| 1382 | (list python-packaging-bootstrap
|
| 1383 | python-pathspec
|
| 1384 | python-pluggy
|
| 1385 | python-tomli
|
| 1386 | python-trove-classifiers))
|
| 1387 | (home-page "https://hatch.pypa.io/latest/")
|
| 1388 | (synopsis "Modern, extensible Python build backend")
|
| 1389 | (description "Hatch is a modern, extensible Python project manager. It
|
| 1390 | has features such as:
|
| 1391 | @itemize
|
| 1392 | @item Standardized build system with reproducible builds by default
|
| 1393 | @item Robust environment management with support for custom scripts
|
| 1394 | @item Easy publishing to PyPI or other indexes
|
| 1395 | @item Version management
|
| 1396 | @item Configurable project generation with sane defaults
|
| 1397 | @item Responsive CLI, ~2-3x faster than equivalent tools.
|
| 1398 | @end itemize")
|
| 1399 | (license license:expat)))
|
| 1400 |
|
| 1401 | (define-public python-hatchling-bootstrap
|
| 1402 | (package/inherit python-hatchling
|
| 1403 | (name "python-hatchling-bootstrap")
|
| 1404 | (propagated-inputs
|
| 1405 | (modify-inputs (package-propagated-inputs python-hatchling)
|
| 1406 | (replace "python-packaging" python-packaging-bootstrap)))))
|
| 1407 |
|
| 1408 | (define-public python-hatchling-for-hatch
|
| 1409 | |
| 1410 | (hidden-package
|
| 1411 | (package
|
| 1412 | (inherit python-hatchling)
|
| 1413 | (version "1.21.1")
|
| 1414 | (source
|
| 1415 | (origin
|
| 1416 | (method url-fetch)
|
| 1417 | (uri (pypi-uri "hatchling" version))
|
| 1418 | (sha256
|
| 1419 | (base32 "1g40g68vzfakddd9f0psp9jkfqy3v3la4zs5g127ski2792l195v"))))
|
| 1420 | (propagated-inputs
|
| 1421 | (list python-editables
|
| 1422 | python-packaging-bootstrap
|
| 1423 | python-pathspec
|
| 1424 | python-pluggy
|
| 1425 | python-trove-classifiers)))))
|
| 1426 |
|
| 1427 | (define-public python-hatch-docstring-description
|
| 1428 | (package
|
| 1429 | (name "python-hatch-docstring-description")
|
| 1430 | (version "1.1.1")
|
| 1431 | (source
|
| 1432 | (origin
|
| 1433 | (method url-fetch)
|
| 1434 | (uri (pypi-uri "hatch_docstring_description" version))
|
| 1435 | (sha256
|
| 1436 | (base32 "1qwa8m4yswn0bkc5xzq30xsaca578axl5ig2r6mkcdxsfg196pdi"))))
|
| 1437 | (build-system pyproject-build-system)
|
| 1438 | (arguments (list #:tests? #f)) |
| 1439 | (native-inputs
|
| 1440 | (list python-hatch-vcs
|
| 1441 | python-hatchling))
|
| 1442 | (propagated-inputs
|
| 1443 | (list python-hatchling))
|
| 1444 | (home-page "https://github.com/flying-sheep/hatch-docstring-description")
|
| 1445 | (synopsis "Derive PyPI package description from Python package docstring ")
|
| 1446 | (description
|
| 1447 | "This package provides a Hatchling plugin to read the description from the
|
| 1448 | package docstring.")
|
| 1449 | (license license:gpl3+)))
|
| 1450 |
|
| 1451 | (define-public python-hatch-fancy-pypi-readme
|
| 1452 | (package
|
| 1453 | (name "python-hatch-fancy-pypi-readme")
|
| 1454 | (version "25.1.0")
|
| 1455 | (source
|
| 1456 | (origin
|
| 1457 | (method url-fetch)
|
| 1458 | (uri (pypi-uri "hatch_fancy_pypi_readme" version))
|
| 1459 | (sha256
|
| 1460 | (base32 "0i803kq80qx0k1lj3z69zw40ynqxml4p1qsc851izmchzwyysn4w"))))
|
| 1461 | (build-system pyproject-build-system)
|
| 1462 | (arguments (list #:tests? #f)) |
| 1463 | (propagated-inputs (list python-hatchling python-tomli))
|
| 1464 | (home-page "https://github.com/hynek/hatch-fancy-pypi-readme")
|
| 1465 | (synopsis "Fancy PyPI READMEs with Hatch")
|
| 1466 | (description "This hatch plugin allows defining a project description in
|
| 1467 | terms of concatenated fragments that are based on static strings, files and
|
| 1468 | parts of files defined using cut-off points or regular expressions.")
|
| 1469 | (license license:expat)))
|
| 1470 |
|
| 1471 | (define-public python-hatch-requirements-txt
|
| 1472 | (package
|
| 1473 | (name "python-hatch-requirements-txt")
|
| 1474 | (version "0.4.1")
|
| 1475 | (source
|
| 1476 | (origin
|
| 1477 | (method url-fetch)
|
| 1478 | (uri (pypi-uri "hatch_requirements_txt" version))
|
| 1479 | (sha256
|
| 1480 | (base32 "083xakilrmy0ymh34s9wm8x8s7s8vn7ij33xz9avn1gxb1bnws1c"))))
|
| 1481 | (build-system pyproject-build-system)
|
| 1482 | (arguments (list #:tests? #f)) |
| 1483 | (propagated-inputs (list python-hatchling python-packaging-bootstrap))
|
| 1484 | (home-page "https://github.com/repo-helper/hatch-requirements-txt")
|
| 1485 | (synopsis "Hatchling plugin to read requirements.txt")
|
| 1486 | (description
|
| 1487 | "This package implements a functionality to read project dependencies
|
| 1488 | from requirements.txt.")
|
| 1489 | (license license:expat)))
|
| 1490 |
|
| 1491 | (define-public python-hatch-vcs
|
| 1492 | (package
|
| 1493 | (name "python-hatch-vcs")
|
| 1494 | (version "0.5.0")
|
| 1495 | (source
|
| 1496 | (origin
|
| 1497 | (method url-fetch)
|
| 1498 | (uri (pypi-uri "hatch_vcs" version))
|
| 1499 | (sha256
|
| 1500 | (base32 "1yczh2aqrf9p3gs1dayswz5pp9z2yhmlld0c14ah4d20d49gm583"))))
|
| 1501 | (arguments (list #:tests? #f)) |
| 1502 | (build-system pyproject-build-system)
|
| 1503 | (propagated-inputs (list python-hatchling python-setuptools-scm))
|
| 1504 | (home-page "https://github.com/ofek/hatch-vcs")
|
| 1505 | (synopsis "Hatch plugin for versioning with your preferred VCS")
|
| 1506 | (description "This package is a plugin for Hatch that uses your preferred
|
| 1507 | version control system (like Git) to determine project versions.")
|
| 1508 | (license license:expat)))
|
| 1509 |
|
| 1510 | (define-public python-hatch-vcs-bootstrap
|
| 1511 | (package/inherit python-hatch-vcs
|
| 1512 | (name "python-hatch-vcs-bootstrap")
|
| 1513 | (native-inputs
|
| 1514 | (list python-packaging-bootstrap))
|
| 1515 | (propagated-inputs
|
| 1516 | (list python-hatchling-bootstrap
|
| 1517 | python-setuptools-scm-bootstrap))))
|
| 1518 |
|
| 1519 | (define-public python-inflect
|
| 1520 | (package
|
| 1521 | (name "python-inflect")
|
| 1522 | (version "7.5.0")
|
| 1523 | (source (origin
|
| 1524 | (method url-fetch)
|
| 1525 | (uri (pypi-uri "inflect" version))
|
| 1526 | (sha256
|
| 1527 | (base32
|
| 1528 | "07spmlkmskwhxc0j5j4ms3w0f6pyv3h8iqwcbahdabklqc0riwgs"))))
|
| 1529 | (build-system pyproject-build-system)
|
| 1530 | (native-inputs
|
| 1531 | (list python-pygments
|
| 1532 | python-pytest-bootstrap
|
| 1533 | python-setuptools-bootstrap
|
| 1534 | python-setuptools-scm-bootstrap))
|
| 1535 | (propagated-inputs
|
| 1536 | (list python-more-itertools
|
| 1537 | python-typeguard
|
| 1538 | python-typing-extensions))
|
| 1539 | (home-page "https://github.com/jaraco/inflect")
|
| 1540 | (synopsis "Correctly generate plurals, singular nouns, ordinals, indefinite articles")
|
| 1541 | (description
|
| 1542 | "This Python module lets you correctly generate plurals, singular nouns,
|
| 1543 | ordinals, indefinite articles; it also can convert numbers to words.")
|
| 1544 | (license license:expat)))
|
| 1545 |
|
| 1546 | (define-public python-iniconfig
|
| 1547 | (package
|
| 1548 | (name "python-iniconfig")
|
| 1549 | (version "2.1.0")
|
| 1550 | (source
|
| 1551 | (origin
|
| 1552 | (method url-fetch)
|
| 1553 | (uri (pypi-uri "iniconfig" version))
|
| 1554 | (sha256
|
| 1555 | (base32 "1iz1fg3n6pv4q8jzv1q0izl5001diwqggizrg3p3ywrn1gix5frs"))))
|
| 1556 | (build-system pyproject-build-system)
|
| 1557 | (arguments (list #:tests? #f)) |
| 1558 | (native-inputs
|
| 1559 | (list python-hatch-vcs-bootstrap
|
| 1560 | python-hatchling-bootstrap))
|
| 1561 | (home-page "https://github.com/RonnyPfannschmidt/iniconfig")
|
| 1562 | (synopsis "Simple INI-file parser")
|
| 1563 | (description "The @code{iniconfig} package provides a small and simple
|
| 1564 | INI-file parser module having a unique set of features ; @code{iniconfig}
|
| 1565 | @itemize
|
| 1566 | @item maintains the order of sections and entries ;
|
| 1567 | @item supports multi-line values with or without line-continuations ;
|
| 1568 | @item supports \"#\" comments everywhere ;
|
| 1569 | @item raises errors with proper line-numbers ;
|
| 1570 | @item raises an error when two sections have the same name.
|
| 1571 | @end itemize")
|
| 1572 | (license license:expat)))
|
| 1573 |
|
| 1574 | (define-public python-installer
|
| 1575 | (package
|
| 1576 | (name "python-installer")
|
| 1577 | (version "0.7.0")
|
| 1578 | (source
|
| 1579 | (origin
|
| 1580 | (method url-fetch)
|
| 1581 | (uri (pypi-uri "installer" version))
|
| 1582 | (sha256
|
| 1583 | (base32 "0cdnqh3a3amw8k4s1pzfjh0hpvzw4pczgl702s1b16r82qqkwvd2"))))
|
| 1584 | (build-system pyproject-build-system)
|
| 1585 | (arguments (list #:tests? #f)) |
| 1586 | (native-inputs
|
| 1587 | (list python-flit-core))
|
| 1588 | (home-page "https://installer.rtfd.io/")
|
| 1589 | (synopsis "Installer library for Python wheels")
|
| 1590 | (description
|
| 1591 | "This package provides a low-level library for installing a Python
|
| 1592 | package from a wheel distribution. It provides basic functionality and
|
| 1593 | abstractions for handling wheels and installing packages from wheels.")
|
| 1594 | (license license:expat)))
|
| 1595 |
|
| 1596 | (define-public python-jaraco-classes
|
| 1597 | (package
|
| 1598 | (name "python-jaraco-classes")
|
| 1599 | (version "3.4.0")
|
| 1600 | (source
|
| 1601 | (origin
|
| 1602 | (method url-fetch)
|
| 1603 | (uri (pypi-uri "jaraco.classes" version))
|
| 1604 | (sha256
|
| 1605 | (base32 "1k9s7wxhsy15730qab8bry7kpgl4yk3wch45ikfw0f823nsj9827"))))
|
| 1606 | (build-system pyproject-build-system)
|
| 1607 | (arguments
|
| 1608 | (list |
| 1609 | #:test-flags '(list "-k" "not project")))
|
| 1610 | (native-inputs
|
| 1611 | (list python-pytest-bootstrap
|
| 1612 | python-setuptools-bootstrap))
|
| 1613 | (propagated-inputs
|
| 1614 | (list python-more-itertools))
|
| 1615 | (home-page "https://github.com/jaraco/jaraco.classes")
|
| 1616 | (synopsis "Utility functions for Python class constructs")
|
| 1617 | (description "This Python library contains utility functions for Python
|
| 1618 | class constructs.")
|
| 1619 | (license license:expat)))
|
| 1620 |
|
| 1621 | (define-public python-jaraco-collections
|
| 1622 | (package
|
| 1623 | (name "python-jaraco-collections")
|
| 1624 | (version "5.2.1")
|
| 1625 | (source
|
| 1626 | (origin
|
| 1627 | (method url-fetch)
|
| 1628 | (uri (pypi-uri "jaraco_collections" version))
|
| 1629 | (sha256
|
| 1630 | (base32 "1v8qza70spm4d822bm7wq3j2cyd33nqg2i87n99spw6np9q1kf6s"))))
|
| 1631 | (build-system pyproject-build-system)
|
| 1632 | |
| 1633 | |
| 1634 | (arguments
|
| 1635 | '(#:test-flags '("-k" "not project")))
|
| 1636 | (native-inputs
|
| 1637 | (list python-pytest-bootstrap
|
| 1638 | python-setuptools-bootstrap
|
| 1639 | python-setuptools-scm-bootstrap))
|
| 1640 | (propagated-inputs
|
| 1641 | (list python-jaraco-text))
|
| 1642 | (home-page "https://github.com/jaraco/jaraco.collections")
|
| 1643 | (synopsis "Provides various collection objects")
|
| 1644 | (description
|
| 1645 | "This package provides models and classes to supplement the
|
| 1646 | standard library @code{collections} module. Examples include
|
| 1647 | @itemize
|
| 1648 | @item
|
| 1649 | RangeMap: A mapping that accepts a range of values for keys.
|
| 1650 | @item
|
| 1651 | Projection: A subset over an existing mapping.
|
| 1652 | @item
|
| 1653 | KeyTransformingDict: Generalized mapping with keys transformed by a function.
|
| 1654 | @item
|
| 1655 | FoldedCaseKeyedDict: A dict whose string keys are case-insensitive.
|
| 1656 | @item
|
| 1657 | BijectiveMap: A map where keys map to values and values back to their keys.
|
| 1658 | @item
|
| 1659 | ItemsAsAttributes: A mapping mix-in exposing items as attributes.
|
| 1660 | @item
|
| 1661 | IdentityOverrideMap: A map whose keys map by default to themselves unless overridden.
|
| 1662 | @item
|
| 1663 | FrozenDict: A hashable, immutable map.
|
| 1664 | @item
|
| 1665 | Enumeration: An object whose keys are enumerated.
|
| 1666 | @item
|
| 1667 | Everything: A container that contains all things.
|
| 1668 | @item
|
| 1669 | Least, Greatest: Objects that are always less than or greater than any other.
|
| 1670 | @item
|
| 1671 | pop_all: Return all items from the mutable sequence and remove them from that sequence.
|
| 1672 | @item
|
| 1673 | DictStack: A stack of dicts, great for sharing scopes.
|
| 1674 | @item
|
| 1675 | WeightedLookup: A specialized RangeMap for selecting an item by weights.
|
| 1676 | @end itemize")
|
| 1677 | (license license:expat)))
|
| 1678 |
|
| 1679 | (define-public python-jaraco-context
|
| 1680 | (package
|
| 1681 | (name "python-jaraco-context")
|
| 1682 | (version "6.0.1")
|
| 1683 | (source
|
| 1684 | (origin
|
| 1685 | (method url-fetch)
|
| 1686 | (uri (pypi-uri "jaraco_context" version))
|
| 1687 | (sha256
|
| 1688 | (base32 "1cyija3n4481r1ykxdx342m07lrfyg4ygbn0in9i82yganjlxblv"))))
|
| 1689 | (build-system pyproject-build-system)
|
| 1690 | (arguments
|
| 1691 | (list #:tests? #f)) |
| 1692 | (native-inputs
|
| 1693 | (list python-setuptools-bootstrap
|
| 1694 | python-setuptools-scm-bootstrap))
|
| 1695 | (propagated-inputs
|
| 1696 | (list python-backports-tarfile))
|
| 1697 | (home-page "https://github.com/jaraco/jaraco.context")
|
| 1698 | (synopsis "Context managers Python library")
|
| 1699 | (description
|
| 1700 | "This Python library provides context managers-related procedures.")
|
| 1701 | (license license:expat)))
|
| 1702 |
|
| 1703 | (define-public python-jaraco-envs-bootstrap
|
| 1704 | (package
|
| 1705 | (name "python-jaraco-envs-bootstrap")
|
| 1706 | (version "2.6.0")
|
| 1707 | (source
|
| 1708 | (origin
|
| 1709 | (method url-fetch)
|
| 1710 | (uri (pypi-uri "jaraco.envs" version))
|
| 1711 | (sha256
|
| 1712 | (base32 "1xb00gfhhhvh44wqq5yqb5bxi79nd97vzvh1xrbb43b40v29b4c0"))))
|
| 1713 | (build-system pyproject-build-system)
|
| 1714 | (arguments
|
| 1715 | (list |
| 1716 | #:tests? #f
|
| 1717 | #:phases
|
| 1718 | #~(modify-phases %standard-phases
|
| 1719 | (delete 'sanity-check))))
|
| 1720 | (propagated-inputs
|
| 1721 | (list python-path
|
| 1722 | python-virtualenv-bootstrap))
|
| 1723 | (native-inputs
|
| 1724 | (list python-setuptools-bootstrap
|
| 1725 | python-setuptools-scm-bootstrap))
|
| 1726 | (home-page "https://github.com/jaraco/jaraco.envs")
|
| 1727 | (synopsis "Classes for orchestrating Python (virtual) environments")
|
| 1728 | (description
|
| 1729 | "This package provides classes for orchestrating Python (virtual)
|
| 1730 | environments.")
|
| 1731 | (license license:expat)))
|
| 1732 |
|
| 1733 | (define-public python-jaraco-functools
|
| 1734 | (package
|
| 1735 | (name "python-jaraco-functools")
|
| 1736 | (version "4.2.1")
|
| 1737 | (source
|
| 1738 | (origin
|
| 1739 | (method url-fetch)
|
| 1740 | (uri (pypi-uri "jaraco_functools" version))
|
| 1741 | (sha256
|
| 1742 | (base32 "0lvk12qbl5zd1ikr6xzflj1jcs3vwgmwgy2k63x5dkmbrjzllqxy"))))
|
| 1743 | (build-system pyproject-build-system)
|
| 1744 | (arguments
|
| 1745 | (list #:tests? (not (%current-target-system))
|
| 1746 | |
| 1747 | |
| 1748 | |
| 1749 | #:test-flags
|
| 1750 | '(list "-k" "not project and not test_function_throttled")))
|
| 1751 | (native-inputs
|
| 1752 | (list python-jaraco-classes
|
| 1753 | python-pytest-bootstrap
|
| 1754 | python-setuptools-bootstrap
|
| 1755 | python-setuptools-scm-bootstrap))
|
| 1756 | (propagated-inputs (list python-more-itertools))
|
| 1757 | (home-page "https://github.com/jaraco/jaraco.functools")
|
| 1758 | (synopsis "Python library extending Python's @code{functools}")
|
| 1759 | (description "This library extends the standard @code{functools} Python
|
| 1760 | module with a few extra procedures.")
|
| 1761 | (license license:expat)))
|
| 1762 |
|
| 1763 | (define-public python-jaraco-path
|
| 1764 | (package
|
| 1765 | (name "python-jaraco-path")
|
| 1766 | (version "3.7.2")
|
| 1767 | (source
|
| 1768 | (origin
|
| 1769 | (method git-fetch)
|
| 1770 | (uri (git-reference
|
| 1771 | (url "https://github.com/jaraco/jaraco.path")
|
| 1772 | (commit (string-append "v" version))))
|
| 1773 | (file-name (git-file-name name version))
|
| 1774 | (sha256
|
| 1775 | (base32 "12bj9za1yp0yn0ppya6a4kwgmh7hvmw64x7ivp4y0sbv20r0vfdq"))))
|
| 1776 | (build-system pyproject-build-system)
|
| 1777 | (native-inputs
|
| 1778 | (list python-pytest-bootstrap
|
| 1779 | python-setuptools-bootstrap
|
| 1780 | python-setuptools-scm-bootstrap))
|
| 1781 | (home-page "https://github.com/jaraco/jaraco.path")
|
| 1782 | (synopsis "Miscellaneous path functions")
|
| 1783 | (description
|
| 1784 | "This package provides miscellaneous path functions for Python.")
|
| 1785 | (license license:expat)))
|
| 1786 |
|
| 1787 | (define-public python-jaraco-test
|
| 1788 | (package
|
| 1789 | (name "python-jaraco-test")
|
| 1790 | (version "5.5.1")
|
| 1791 | (source
|
| 1792 | (origin
|
| 1793 | (method url-fetch)
|
| 1794 | (uri (pypi-uri "jaraco_test" version))
|
| 1795 | (sha256
|
| 1796 | (base32 "0xfkly5w4i4npi4pq1g32y8q8iijkq4pfcfs8wcjhfn4amj6212c"))))
|
| 1797 | (build-system pyproject-build-system)
|
| 1798 | (arguments
|
| 1799 | (list #:test-flags '(list "-k" "http")))
|
| 1800 | (native-inputs
|
| 1801 | (list python-pytest-bootstrap
|
| 1802 | python-setuptools-bootstrap))
|
| 1803 | (propagated-inputs
|
| 1804 | (list python-jaraco-collections
|
| 1805 | python-jaraco-context
|
| 1806 | python-jaraco-functools))
|
| 1807 | (home-page "https://github.com/jaraco/jaraco.test")
|
| 1808 | (synopsis "Testing support by jaraco")
|
| 1809 | (description "This package provides testing support by jaraco.")
|
| 1810 | (license license:expat)))
|
| 1811 |
|
| 1812 | (define-public python-jaraco-text
|
| 1813 | (package
|
| 1814 | (name "python-jaraco-text")
|
| 1815 | (version "4.0.0")
|
| 1816 | (source
|
| 1817 | (origin
|
| 1818 | (method url-fetch)
|
| 1819 | (uri (pypi-uri "jaraco_text" version))
|
| 1820 | (sha256
|
| 1821 | (base32 "1c0dy5jvhigcyryi2h8n1m87dnhyxr7w01n9shwzkdlslv7gwwav"))))
|
| 1822 | (build-system pyproject-build-system)
|
| 1823 | |
| 1824 | |
| 1825 | (arguments
|
| 1826 | '(#:test-flags '("-k" "not project")))
|
| 1827 | (native-inputs
|
| 1828 | (list python-pytest-bootstrap
|
| 1829 | python-setuptools-bootstrap
|
| 1830 | python-setuptools-scm-bootstrap))
|
| 1831 | (propagated-inputs
|
| 1832 | (list python-autocommand
|
| 1833 | python-inflect
|
| 1834 | python-jaraco-context
|
| 1835 | python-jaraco-functools
|
| 1836 | python-more-itertools))
|
| 1837 | (home-page "https://github.com/jaraco/jaraco.text")
|
| 1838 | (synopsis "Provides various routines for text manipulation")
|
| 1839 | (description
|
| 1840 | "This package provides handy routines for dealing with text,
|
| 1841 | such as wrapping, substitution, trimming, stripping, prefix and suffix
|
| 1842 | removal, line continuation, indentation, comment processing, identifier
|
| 1843 | processing, values parsing, case insensitive comparison, and more.")
|
| 1844 | (license license:expat)))
|
| 1845 |
|
| 1846 | (define-public python-pdm-backend
|
| 1847 | (package
|
| 1848 | (name "python-pdm-backend")
|
| 1849 | (version "2.4.5")
|
| 1850 | (source
|
| 1851 | (origin
|
| 1852 | (method url-fetch)
|
| 1853 | (uri (pypi-uri "pdm_backend" version))
|
| 1854 | (sha256
|
| 1855 | (base32 "0nzyfa4jb0cpfhh0jfqsk4xz8rbyfyxqrh2ps3axm2ih8321kh2n"))))
|
| 1856 | (build-system pyproject-build-system)
|
| 1857 | (arguments
|
| 1858 | (list
|
| 1859 | #:tests? #f)) |
| 1860 | (home-page "https://pdm-backend.fming.dev/")
|
| 1861 | (synopsis "PEP 517 build backend for PDM")
|
| 1862 | (description
|
| 1863 | "PDM-Backend is a build backend that supports the latest packaging
|
| 1864 | standards, which includes PEP 517, PEP 621 and PEP 660.")
|
| 1865 | (license license:expat)))
|
| 1866 |
|
| 1867 | (define-public python-virtualenv-bootstrap
|
| 1868 | (package
|
| 1869 | (name "python-virtualenv-bootstrap")
|
| 1870 | (version "20.29.1")
|
| 1871 | (source
|
| 1872 | (origin
|
| 1873 | (method url-fetch)
|
| 1874 | (uri (pypi-uri "virtualenv" version))
|
| 1875 | (sha256
|
| 1876 | (base32
|
| 1877 | "0dfwnn8i1y33kgxhi4xyhsj4yr5vsin7zf9c343bcbyk700rgf5q"))))
|
| 1878 | (build-system pyproject-build-system)
|
| 1879 | (arguments (list #:tests? #f)) |
| 1880 | (native-inputs
|
| 1881 | (list python-hatch-vcs-bootstrap
|
| 1882 | python-hatchling
|
| 1883 | python-setuptools-bootstrap))
|
| 1884 | (propagated-inputs
|
| 1885 | (list python-distlib
|
| 1886 | python-filelock-bootstrap
|
| 1887 | python-platformdirs-bootstrap))
|
| 1888 | (home-page "https://virtualenv.pypa.io/")
|
| 1889 | (synopsis "Virtual Python environment builder")
|
| 1890 | (description
|
| 1891 | "Virtualenv is a tool to create isolated Python environments.")
|
| 1892 | (license license:expat)))
|