pipx: refactor

This commit is contained in:
natsukium 2024-03-24 12:25:26 +09:00
parent c1153cb007
commit dddb894fd1
No known key found for this signature in database
GPG Key ID: 9EA45A31DB994C53

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 = [
@ -83,7 +82,7 @@ buildPythonPackage rec {
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 ];