Skip to content

Commit

Permalink
Merge pull request #265544 from dotlambda/poetry-1.7.0
Browse files Browse the repository at this point in the history
poetry: 1.6.1 -> 1.7.0
  • Loading branch information
dotlambda authored Nov 21, 2023
2 parents feae838 + 655678e commit 5737296
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 16 deletions.
4 changes: 2 additions & 2 deletions pkgs/tools/package-management/poetry/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ let
# We keep the override around even when the versions match, as
# it's likely to become relevant again after the next Poetry update.
poetry-core = super.poetry-core.overridePythonAttrs (old: rec {
version = poetry.version;
version = "1.8.1";
src = fetchFromGitHub {
owner = "python-poetry";
repo = "poetry-core";
rev = version;
hash = "sha256-OfY2zc+5CgOrgbiPVnvMdT4h1S7Aek8S7iThl6azmsk=";
hash = "sha256-RnCJ67jaL2knwv+Uo7p0zOejHAT73f40weaJnfqOYoM=";
};
});
} // (plugins self);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@

buildPythonPackage rec {
pname = "poetry-plugin-export";
version = "1.5.0";
version = "1.6.0";
format = "pyproject";

src = fetchFromGitHub {
owner = "python-poetry";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-bX7Mqpe7SYQQVrPNVOl8Bwmeiq7owIiUhw0sp5+Gwck=";
hash = "sha256-6U96O0mCQpviBr4I67ZfHytsooXG4oCNTx8YqrrIzYo=";
};

postPatch = ''
Expand Down
17 changes: 5 additions & 12 deletions pkgs/tools/package-management/poetry/unwrapped.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
, buildPythonPackage
, pythonOlder
, fetchFromGitHub
, fetchpatch
, installShellFiles
, pythonRelaxDepsHook
, build
Expand Down Expand Up @@ -42,7 +41,7 @@

buildPythonPackage rec {
pname = "poetry";
version = "1.6.1";
version = "1.7.0";
format = "pyproject";

disabled = pythonOlder "3.8";
Expand All @@ -51,18 +50,9 @@ buildPythonPackage rec {
owner = "python-poetry";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-/OvYT4Vix1t5Yx/Tx0z3E9L9qJ4OdI4maQqUVl8H524=";
hash = "sha256-au+4TOh/sA1+XZqXvWkKxfSdurusBR4l8jsPg6acUM8=";
};

patches = [
# Backport patch to fix pypa/build 1.0 incompatibility
# FIXME: remove in next release
(fetchpatch {
url = "https://github.com/python-poetry/poetry/commit/a16863d1a448ff91a7cc4e48042d3a8669b78b34.patch";
hash = "sha256-dWa5W1jFS7h5cTgoFy89o1Rbtmyddvme4sus+lld058=";
})
];

nativeBuildInputs = [
installShellFiles
pythonRelaxDepsHook
Expand Down Expand Up @@ -132,6 +122,8 @@ buildPythonPackage rec {
'';

disabledTests = [
"test_env_system_packages_are_relative_to_lib"
"test_install_warning_corrupt_root"
"test_installer_with_pypi_repository"
# touches network
"git"
Expand All @@ -148,6 +140,7 @@ buildPythonPackage rec {
# fs permission errors
"test_builder_should_execute_build_scripts"
# poetry.installation.chef.ChefBuildError: Backend 'poetry.core.masonry.api' is not available.
"test_isolated_env_install_success"
"test_prepare_sdist"
"test_prepare_directory"
"test_prepare_directory_with_extensions"
Expand Down

0 comments on commit 5737296

Please sign in to comment.