Merge pull request #298528 from natsukium/pipx/fix

pipx: fix build and refactor
This commit is contained in:
OTABI Tomoya 2024-03-26 09:48:10 +09:00 committed by GitHub
commit bc0813c0ca
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -4,12 +4,11 @@
, fetchFromGitHub
, hatchling
, hatch-vcs
, importlib-metadata
, packaging
, pip
, platformdirs
, pytestCheckHook
, pythonOlder
, tomli
, userpath
, git
}:
@ -17,29 +16,29 @@
buildPythonPackage rec {
pname = "pipx";
version = "1.4.3";
format = "pyproject";
pyproject = true;
disabled = pythonOlder "3.6";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "pipxproject";
repo = pname;
owner = "pypa";
repo = "pipx";
rev = "refs/tags/${version}";
hash = "sha256-NxXOeVXwBhGqi4DUABV8UV+cDER0ROBFdgiyYTzdvuo=";
};
nativeBuildInputs = [
build-system = [
hatchling
hatch-vcs
];
propagatedBuildInputs = [
dependencies = [
argcomplete
packaging
platformdirs
userpath
] ++ lib.optionals (pythonOlder "3.8") [
importlib-metadata
] ++ lib.optionals (pythonOlder "3.11") [
tomli
];
nativeCheckInputs = [
@ -77,12 +76,13 @@ buildPythonPackage rec {
"determination"
"json"
"test_list_short"
"test_skip_maintenance"
];
meta = with lib; {
description = "Install and run Python applications in isolated environments";
mainProgram = "pipx";
homepage = "https://github.com/pipxproject/pipx";
homepage = "https://github.com/pypa/pipx";
changelog = "https://github.com/pypa/pipx/blob/${version}/CHANGELOG.md";
license = licenses.mit;
maintainers = with maintainers; [ yshym ];