python3Packages.pipx: init at 0.15.5.0
This commit is contained in:
parent
5df33396e7
commit
4a19316bfd
2 changed files with 61 additions and 0 deletions
59
pkgs/development/python-modules/pipx/default.nix
Normal file
59
pkgs/development/python-modules/pipx/default.nix
Normal file
|
@ -0,0 +1,59 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, pythonOlder
|
||||
, userpath
|
||||
, argcomplete
|
||||
, packaging
|
||||
, pytestCheckHook
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pipx";
|
||||
version = "0.15.5.0";
|
||||
|
||||
disabled = pythonOlder "3.6";
|
||||
|
||||
# no tests in the pypi tarball, so we directly fetch from github
|
||||
src = fetchFromGitHub {
|
||||
owner = "pipxproject";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "13z032i8r9f6d09hssvyjpxjacb4wgms5bh2i37da2ili9bh72m6";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ userpath argcomplete packaging ];
|
||||
|
||||
# avoid inconclusive venv assertion, see https://github.com/pipxproject/pipx/pull/477
|
||||
# remove after PR is merged
|
||||
postPatch = ''
|
||||
substituteInPlace tests/helpers.py \
|
||||
--replace 'assert getattr(sys, "base_prefix", sys.prefix) != sys.prefix, "Tests require venv"' ""
|
||||
'';
|
||||
|
||||
checkInputs = [ pytestCheckHook ];
|
||||
|
||||
preCheck = ''
|
||||
export HOME=$(mktemp -d)
|
||||
'';
|
||||
|
||||
# disable tests, which require internet connection
|
||||
disabledTests = [
|
||||
"install"
|
||||
"inject"
|
||||
"ensure_null_pythonpath"
|
||||
"missing_interpreter"
|
||||
"cache"
|
||||
"internet"
|
||||
"runpip"
|
||||
"upgrade"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description =
|
||||
"Install and Run Python Applications in Isolated Environments";
|
||||
homepage = "https://github.com/pipxproject/pipx";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ yevhenshymotiuk ];
|
||||
};
|
||||
}
|
|
@ -5346,6 +5346,8 @@ in {
|
|||
|
||||
pip = callPackage ../development/python-modules/pip { };
|
||||
|
||||
pipx = callPackage ../development/python-modules/pipx { };
|
||||
|
||||
pip-tools = callPackage ../development/python-modules/pip-tools {
|
||||
git = pkgs.gitMinimal;
|
||||
glibcLocales = pkgs.glibcLocales;
|
||||
|
|
Loading…
Reference in a new issue