Merge pull request #298528 from natsukium/pipx/fix
pipx: fix build and refactor
This commit is contained in:
commit
bc0813c0ca
1 changed files with 11 additions and 11 deletions
|
@ -4,12 +4,11 @@
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, hatchling
|
, hatchling
|
||||||
, hatch-vcs
|
, hatch-vcs
|
||||||
, importlib-metadata
|
|
||||||
, packaging
|
, packaging
|
||||||
, pip
|
|
||||||
, platformdirs
|
, platformdirs
|
||||||
, pytestCheckHook
|
, pytestCheckHook
|
||||||
, pythonOlder
|
, pythonOlder
|
||||||
|
, tomli
|
||||||
, userpath
|
, userpath
|
||||||
, git
|
, git
|
||||||
}:
|
}:
|
||||||
|
@ -17,29 +16,29 @@
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "pipx";
|
pname = "pipx";
|
||||||
version = "1.4.3";
|
version = "1.4.3";
|
||||||
format = "pyproject";
|
pyproject = true;
|
||||||
|
|
||||||
disabled = pythonOlder "3.6";
|
disabled = pythonOlder "3.8";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "pipxproject";
|
owner = "pypa";
|
||||||
repo = pname;
|
repo = "pipx";
|
||||||
rev = "refs/tags/${version}";
|
rev = "refs/tags/${version}";
|
||||||
hash = "sha256-NxXOeVXwBhGqi4DUABV8UV+cDER0ROBFdgiyYTzdvuo=";
|
hash = "sha256-NxXOeVXwBhGqi4DUABV8UV+cDER0ROBFdgiyYTzdvuo=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [
|
build-system = [
|
||||||
hatchling
|
hatchling
|
||||||
hatch-vcs
|
hatch-vcs
|
||||||
];
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
dependencies = [
|
||||||
argcomplete
|
argcomplete
|
||||||
packaging
|
packaging
|
||||||
platformdirs
|
platformdirs
|
||||||
userpath
|
userpath
|
||||||
] ++ lib.optionals (pythonOlder "3.8") [
|
] ++ lib.optionals (pythonOlder "3.11") [
|
||||||
importlib-metadata
|
tomli
|
||||||
];
|
];
|
||||||
|
|
||||||
nativeCheckInputs = [
|
nativeCheckInputs = [
|
||||||
|
@ -77,12 +76,13 @@ buildPythonPackage rec {
|
||||||
"determination"
|
"determination"
|
||||||
"json"
|
"json"
|
||||||
"test_list_short"
|
"test_list_short"
|
||||||
|
"test_skip_maintenance"
|
||||||
];
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Install and run Python applications in isolated environments";
|
description = "Install and run Python applications in isolated environments";
|
||||||
mainProgram = "pipx";
|
mainProgram = "pipx";
|
||||||
homepage = "https://github.com/pipxproject/pipx";
|
homepage = "https://github.com/pypa/pipx";
|
||||||
changelog = "https://github.com/pypa/pipx/blob/${version}/CHANGELOG.md";
|
changelog = "https://github.com/pypa/pipx/blob/${version}/CHANGELOG.md";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
maintainers = with maintainers; [ yshym ];
|
maintainers = with maintainers; [ yshym ];
|
||||||
|
|
Loading…
Reference in a new issue