Unverified Commit 126f49a0 authored by Fabian Affolter's avatar Fabian Affolter Committed by GitHub
Browse files

Merge pull request #221249 from r-ryantm/auto-update/pipx

pipx: 1.1.0 -> 1.2.0
parents e79723a8 0967f952
Loading
Loading
Loading
Loading
+12 −10
Original line number Diff line number Diff line
{ lib
, argcomplete
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, hatchling
, userpath
, argcomplete
, packaging
, importlib-metadata
, packaging
, pip
, platformdirs
, pytestCheckHook
, pythonOlder
, userpath
}:

buildPythonPackage rec {
  pname = "pipx";
  version = "1.1.0";
  version = "1.2.0";
  format = "pyproject";

  disabled = pythonOlder "3.6";

  # no tests in the pypi tarball, so we directly fetch from github
  src = fetchFromGitHub {
    owner = "pipxproject";
    repo = pname;
    rev = "refs/tags/${version}";
    sha256 = "sha256-6cKKVOgHIoKNfGqvDWK5cwBGBDkgfyRuBRDV6fruBoA=";
    hash = "sha256-lm/Q+8nNubhaUR1pUbSIoD4DEUEkK+pQvvUdWNquW4Q=";
  };

  nativeBuildInputs = [
@@ -31,9 +31,10 @@ buildPythonPackage rec {
  ];

  propagatedBuildInputs = [
    userpath
    argcomplete
    packaging
    platformdirs
    userpath
  ] ++ lib.optionals (pythonOlder "3.8") [
    importlib-metadata
  ];
@@ -51,6 +52,7 @@ buildPythonPackage rec {
    # start local pypi server and use in tests
    "--net-pypiserver"
  ];

  disabledTests = [
    # disable tests which are difficult to emulate due to shell manipulations
    "path_warning"
@@ -74,9 +76,9 @@ buildPythonPackage rec {
  ];

  meta = with lib; {
    description =
      "Install and Run Python Applications in Isolated Environments";
    description = "Install and run Python applications in isolated environments";
    homepage = "https://github.com/pipxproject/pipx";
    changelog = "https://github.com/pypa/pipx/blob/${version}/CHANGELOG.md";
    license = licenses.mit;
    maintainers = with maintainers; [ yshym ];
  };