2020-08-24 08:58:42 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pythonOlder
|
|
|
|
, userpath
|
|
|
|
, argcomplete
|
|
|
|
, packaging
|
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pipx";
|
2020-10-18 15:11:30 +01:00
|
|
|
version = "0.15.6.0";
|
2020-08-24 08:58:42 +01:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
|
|
|
# no tests in the pypi tarball, so we directly fetch from github
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pipxproject";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2020-10-18 15:11:30 +01:00
|
|
|
sha256 = "1yffswayjfkmq86ygisja0mkg55pqj9pdml5nc0z05222sfnvn1a";
|
2020-08-24 08:58:42 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ userpath argcomplete packaging ];
|
|
|
|
|
|
|
|
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"
|
2020-10-18 15:11:30 +01:00
|
|
|
"suffix"
|
|
|
|
"legacy_venv"
|
2020-08-24 08:58:42 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|