diff --git a/gnu/packages/package-management.scm b/gnu/packages/package-management.scm index abae481dab..46cc6a495a 100644 --- a/gnu/packages/package-management.scm +++ b/gnu/packages/package-management.scm @@ -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") diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 72ea276157..b27f708e45 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -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")