poetry: remove from pythonPackages
It is a CLI tool for Python packaging. Python modules should use poetry-core as a build-time dependency instead.
This commit is contained in:
parent
17c15cc3ff
commit
8fcba0f722
|
@ -1,52 +1,18 @@
|
|||
{ lib
|
||||
, backports-cached-property
|
||||
, buildPythonPackage
|
||||
, cachecontrol
|
||||
, cachy
|
||||
, cleo
|
||||
, crashtest
|
||||
, deepdiff
|
||||
, dulwich
|
||||
, fetchFromGitHub
|
||||
, filelock
|
||||
, flatdict
|
||||
, html5lib
|
||||
, httpretty
|
||||
, importlib-metadata
|
||||
, installShellFiles
|
||||
, intreehooks
|
||||
, jsonschema
|
||||
, keyring
|
||||
, lockfile
|
||||
, packaging
|
||||
, pexpect
|
||||
, pkginfo
|
||||
, platformdirs
|
||||
, poetry-core
|
||||
, poetry-plugin-export
|
||||
, pytest-mock
|
||||
, pytest-xdist
|
||||
, pytestCheckHook
|
||||
, pythonAtLeast
|
||||
, pythonOlder
|
||||
, requests
|
||||
, requests-toolbelt
|
||||
, shellingham
|
||||
, stdenv
|
||||
, tomli
|
||||
, tomlkit
|
||||
, trove-classifiers
|
||||
, urllib3
|
||||
, virtualenv
|
||||
, xattr
|
||||
, python3
|
||||
, fetchFromGitHub
|
||||
, installShellFiles
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
let
|
||||
python = python3;
|
||||
in python.pkgs.buildPythonApplication rec {
|
||||
pname = "poetry";
|
||||
version = "1.3.1";
|
||||
format = "pyproject";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
disabled = python.pkgs.pythonOlder "3.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "python-poetry";
|
||||
|
@ -59,7 +25,7 @@ buildPythonPackage rec {
|
|||
installShellFiles
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
propagatedBuildInputs = with python.pkgs; [
|
||||
cachecontrol
|
||||
cleo
|
||||
crashtest
|
||||
|
@ -97,7 +63,7 @@ buildPythonPackage rec {
|
|||
--zsh <($out/bin/poetry completions zsh) \
|
||||
'';
|
||||
|
||||
checkInputs = [
|
||||
checkInputs = with python.pkgs; [
|
||||
cachy
|
||||
deepdiff
|
||||
flatdict
|
||||
|
@ -132,7 +98,7 @@ buildPythonPackage rec {
|
|||
"lock"
|
||||
# fs permission errors
|
||||
"test_builder_should_execute_build_scripts"
|
||||
] ++ lib.optionals (pythonAtLeast "3.10") [
|
||||
] ++ lib.optionals (python.pythonAtLeast "3.10") [
|
||||
# RuntimeError: 'auto_spec' might be a typo; use unsafe=True if this is intended
|
||||
"test_info_setup_complex_pep517_error"
|
||||
];
|
|
@ -16363,7 +16363,7 @@ with pkgs;
|
|||
|
||||
pew = callPackage ../development/tools/pew {};
|
||||
|
||||
poetry = with python3.pkgs; toPythonApplication poetry;
|
||||
poetry = callPackage ../tools/package-management/poetry { };
|
||||
|
||||
poetry2nix = callPackage ../development/tools/poetry2nix/poetry2nix {
|
||||
inherit pkgs lib;
|
||||
|
|
|
@ -134,6 +134,7 @@ mapAliases ({
|
|||
pathpy = path; # added 2022-04-12
|
||||
pdfminer = pdfminer-six; # added 2022-05-25
|
||||
pep257 = pydocstyle; # added 2022-04-12
|
||||
poetry = throw "poetry was promoted to a top-level attribute, use poetry-core to build Python packages"; # added 2023-01-09
|
||||
poetry2conda = throw "poetry2conda was promoted to a top-level attribute"; # Added 2022-10-02
|
||||
poster3 = throw "poster3 is unmaintained and source is no longer available"; # added 2023-05-29
|
||||
postorius = throw "Please use pkgs.mailmanPackages.postorius"; # added 2022-04-29
|
||||
|
|
|
@ -7300,8 +7300,6 @@ self: super: with self; {
|
|||
|
||||
podcats = callPackage ../development/python-modules/podcats { };
|
||||
|
||||
poetry = callPackage ../development/python-modules/poetry { };
|
||||
|
||||
poetry-core = callPackage ../development/python-modules/poetry-core { };
|
||||
|
||||
poetry-dynamic-versioning = callPackage ../development/python-modules/poetry-dynamic-versioning { };
|
||||
|
|
Loading…
Reference in a new issue