Skip to content

Commit

Permalink
python310Packages.poetry-core: 1.5.1 -> 1.6.1
Browse files Browse the repository at this point in the history
  • Loading branch information
dotlambda committed Jul 20, 2023
1 parent 645d6bd commit 2ded0af
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 31 deletions.
32 changes: 5 additions & 27 deletions pkgs/development/python-modules/poetry-core/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,59 +2,37 @@
, stdenv
, buildPythonPackage
, fetchFromGitHub
, fetchpatch
, pythonOlder
, build
, git
, importlib-metadata
, pep517
, pytest-mock
, pytestCheckHook
, setuptools
, tomlkit
, tomli-w
, virtualenv
}:

buildPythonPackage rec {
pname = "poetry-core";
version = "1.5.1";
version = "1.6.1";
format = "pyproject";

disabled = pythonOlder "3.7";
disabled = pythonOlder "3.8";

src = fetchFromGitHub {
owner = "python-poetry";
repo = pname;
rev = version;
hash = "sha256-h3d0h+WCrrNlfPOlUx6Rj0aG6untD6MiunqvPj4yT+0=";
hash = "sha256-Gc22Y2T4uO39jiOqEUFeOfnVCbknuDjmzFPZgk2eY74=";
};

# revert update of vendored dependencies to unbreak e.g. zeroconf on x86_64-darwin
patches = lib.optionals (stdenv.isDarwin && stdenv.isx86_64) [
(fetchpatch {
url = "https://github.com/python-poetry/poetry-core/commit/80d7dcdc722dee0e09e5f3303b663003d794832c.patch";
revert = true;
hash = "sha256-CPjkNCmuAiowp/kyKqnEfUQNmXK95RMJOIa24nG6xi8=";
})
(fetchpatch {
url = "https://github.com/python-poetry/poetry-core/commit/43fd7fe62676421b3661c96844b5d7cf49b87c07.patch";
revert = true;
hash = "sha256-fXq8L23qjLraLeMzB1bwW1jU0eGd236/GHIoYKwOuL0=";
})
];

propagatedBuildInputs = lib.optionals (pythonOlder "3.8") [
importlib-metadata
];

nativeCheckInputs = [
build
git
pep517
pytest-mock
pytestCheckHook
setuptools
tomlkit
tomli-w
virtualenv
];

Expand Down
4 changes: 0 additions & 4 deletions pkgs/tools/package-management/poetry/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,6 @@ let
rev = version;
hash = "sha256-Gc22Y2T4uO39jiOqEUFeOfnVCbknuDjmzFPZgk2eY74=";
};
patches = [ ];
nativeCheckInputs = old.nativeCheckInputs ++ [
self.tomli-w
];
});
} // (plugins self);
};
Expand Down

0 comments on commit 2ded0af

Please sign in to comment.