mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 17:33:09 +00:00
pipx: refactor
This commit is contained in:
parent
c1153cb007
commit
dddb894fd1
@ -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 ];
|
||||
|
Loading…
Reference in New Issue
Block a user