1
0
mirror of https://git.savannah.gnu.org/git/guix.git synced 2026-04-06 21:20:33 +02:00

gnu: poetry: Move to package-management.

* gnu/packages/python-xyz.scm (poetry): Move from here ...
* gnu/packages/package-management.scm: ... to here.

Change-Id: I40e76ac0b8ddc38ea80b48f8f7ad867c43809481
This commit is contained in:
Sharlatan Hellseher
2025-10-12 21:26:57 +01:00
parent b2260f3aba
commit bdc386e135
2 changed files with 109 additions and 108 deletions

View File

@@ -114,6 +114,7 @@
#:use-module (gnu packages python)
#:use-module (gnu packages python-build)
#:use-module (gnu packages python-check)
#:use-module (gnu packages python-crypto)
#:use-module (gnu packages python-web)
#:use-module (gnu packages python-xyz)
#:use-module (gnu packages ruby-check)
@@ -1214,6 +1215,114 @@ written in Python. It's roughly similar to JavaScript's @code{npx}, and
Trisquel's @code{apt}.")
(license license:expat)))
(define-public poetry
(package
(name "poetry")
(version "2.1.3")
(source
(origin
(method url-fetch)
(uri (pypi-uri "poetry" version))
(sha256
(base32 "1505snny5sgz9zf0wx1zqw6kqly3pi9lbsl8dnbpb55ij1kvvjgj"))))
(build-system pyproject-build-system)
(arguments
(list
;; tests: 1295 passed, 9 skipped
#:test-flags
;; Network access is required.
#~(list "--ignore=tests/console/commands/test_add.py"
"--ignore=tests/console/commands/test_search.py"
"--ignore=tests/console/commands/test_show.py"
"--ignore=tests/installation/test_chef.py"
"--ignore=tests/installation/test_chooser.py"
"--ignore=tests/installation/test_executor.py"
"--ignore=tests/installation/test_installer.py"
"--ignore=tests/packages/test_direct_origin.py"
"--ignore=tests/publishing/test_uploader.py"
"--ignore=tests/puzzle/test_solver.py"
"--ignore=tests/repositories/test_legacy_repository.py"
"--ignore=tests/repositories/test_pypi_repository.py"
"--ignore=tests/repositories/test_repository_pool.py"
"--ignore=tests/utils/test_authenticator.py"
"--ignore=tests/utils/test_dependency_specification.py"
"--ignore=tests/utils/test_helpers.py"
;; XXX: Various incompatibility faileurs.
"--ignore=tests/console/commands/env/test_activate.py"
"--ignore=tests/console/commands/python/test_python_list.py"
"--ignore=tests/console/commands/test_publish.py"
"--ignore=tests/console/test_application_command_not_found.py"
"--ignore=tests/inspection/test_info.py"
"--ignore=tests/inspection/test_lazy_wheel.py"
"--ignore=tests/puzzle/test_provider.py"
"--ignore=tests/utils/env/python/test_manager.py"
"--ignore=tests/utils/env/test_env.py"
"--ignore=tests/utils/test_isolated_build.py"
"--ignore=tests/vcs/git/test_backend.py"
"-k" (string-join
(list "not test_builder_setup_generation_runs_with_pip_editable"
"test_check_invalid"
"test_create_poetry_fails_on_invalid_configuration"
"test_installer_with_pypi_repository"
"test_shell"
;; RuntimeError: No lockfile found. Unable to read
;; locked packages
"test_not_fresh_lock"
;; assert False is True
"test_env_system_packages_are_relative_to_lib"
;; poetry.inspection.info.PackageInfoError: Unable
;; to determine package info for path
"test_info_setup_complex_calls_script")
" and not "))
#:phases
#~(modify-phases %standard-phases
;; Almost every dependency is pinned too strictly.
(delete 'sanity-check))))
(native-inputs
(list nss-certs-for-test
python-deepdiff
python-httpretty
python-pytest
python-pytest-mock
python-pytest-randomly
python-pytest-xdist))
(propagated-inputs
(list python-cachecontrol
python-cleo
python-crashtest
python-dulwich
python-entrypoints
python-fastjsonschema
python-findpython
python-importlib-metadata
python-installer
python-keyring
python-packaging
python-pbs-installer
python-pexpect
python-pip
python-pkginfo
python-platformdirs
python-poetry-core
python-poetry-plugin-export
python-pypa-build
python-pyproject-hooks
python-requests
python-requests-toolbelt
python-shellingham
python-tomli
python-tomlkit
python-trove-classifiers
python-virtualenv
python-xattr))
(home-page "https://python-poetry.org")
(synopsis "Python dependency management and packaging made easy")
(description
"Poetry is a tool for dependency management and packaging in Python. It
allows you to declare the libraries your project depends on and it will
manage (install/update) them for you.")
(license license:expat)))
(define-public python-anaconda-client
(package
(name "python-anaconda-client")

View File

@@ -23031,114 +23031,6 @@ powerful API: thread-safety; decorator syntax; support for memcached, redis,
database, file, dict stores. Cachy supports python versions 2.7+ and 3.2+.")
(license license:expat)))
(define-public poetry
(package
(name "poetry")
(version "2.1.3")
(source
(origin
(method url-fetch)
(uri (pypi-uri "poetry" version))
(sha256
(base32 "1505snny5sgz9zf0wx1zqw6kqly3pi9lbsl8dnbpb55ij1kvvjgj"))))
(build-system pyproject-build-system)
(arguments
(list
;; tests: 1295 passed, 9 skipped
#:test-flags
;; Network access is required.
#~(list "--ignore=tests/console/commands/test_add.py"
"--ignore=tests/console/commands/test_search.py"
"--ignore=tests/console/commands/test_show.py"
"--ignore=tests/installation/test_chef.py"
"--ignore=tests/installation/test_chooser.py"
"--ignore=tests/installation/test_executor.py"
"--ignore=tests/installation/test_installer.py"
"--ignore=tests/packages/test_direct_origin.py"
"--ignore=tests/publishing/test_uploader.py"
"--ignore=tests/puzzle/test_solver.py"
"--ignore=tests/repositories/test_legacy_repository.py"
"--ignore=tests/repositories/test_pypi_repository.py"
"--ignore=tests/repositories/test_repository_pool.py"
"--ignore=tests/utils/test_authenticator.py"
"--ignore=tests/utils/test_dependency_specification.py"
"--ignore=tests/utils/test_helpers.py"
;; XXX: Various incompatibility faileurs.
"--ignore=tests/console/commands/env/test_activate.py"
"--ignore=tests/console/commands/python/test_python_list.py"
"--ignore=tests/console/commands/test_publish.py"
"--ignore=tests/console/test_application_command_not_found.py"
"--ignore=tests/inspection/test_info.py"
"--ignore=tests/inspection/test_lazy_wheel.py"
"--ignore=tests/puzzle/test_provider.py"
"--ignore=tests/utils/env/python/test_manager.py"
"--ignore=tests/utils/env/test_env.py"
"--ignore=tests/utils/test_isolated_build.py"
"--ignore=tests/vcs/git/test_backend.py"
"-k" (string-join
(list "not test_builder_setup_generation_runs_with_pip_editable"
"test_check_invalid"
"test_create_poetry_fails_on_invalid_configuration"
"test_installer_with_pypi_repository"
"test_shell"
;; RuntimeError: No lockfile found. Unable to read
;; locked packages
"test_not_fresh_lock"
;; assert False is True
"test_env_system_packages_are_relative_to_lib"
;; poetry.inspection.info.PackageInfoError: Unable
;; to determine package info for path
"test_info_setup_complex_calls_script")
" and not "))
#:phases
#~(modify-phases %standard-phases
;; Almost every dependency is pinned too strictly.
(delete 'sanity-check))))
(native-inputs
(list nss-certs-for-test
python-deepdiff
python-httpretty
python-pytest
python-pytest-mock
python-pytest-randomly
python-pytest-xdist))
(propagated-inputs
(list python-cachecontrol
python-cleo
python-crashtest
python-dulwich
python-entrypoints
python-fastjsonschema
python-findpython
python-importlib-metadata
python-installer
python-keyring
python-packaging
python-pbs-installer
python-pexpect
python-pip
python-pkginfo
python-platformdirs
python-poetry-core
python-poetry-plugin-export
python-pypa-build
python-pyproject-hooks
python-requests
python-requests-toolbelt
python-shellingham
python-tomli
python-tomlkit
python-trove-classifiers
python-virtualenv
python-xattr))
(home-page "https://python-poetry.org")
(synopsis "Python dependency management and packaging made easy")
(description
"Poetry is a tool for dependency management and packaging in Python. It
allows you to declare the libraries your project depends on and it will
manage (install/update) them for you.")
(license license:expat)))
(define-public python-pyproject-api
(package
(name "python-pyproject-api")