python3Packages.pipx: fix build

This commit is contained in:
Martin Weinelt 2022-08-02 14:50:34 +02:00
parent 38bfd83490
commit bbc08180e5
No known key found for this signature in database
GPG key ID: 87C1E9888F856759

View file

@ -2,16 +2,19 @@
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, hatchling
, userpath
, argcomplete
, packaging
, importlib-metadata
, pip
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "pipx";
version = "1.1.0";
format = "pyproject";
disabled = pythonOlder "3.6";
@ -23,6 +26,10 @@ buildPythonPackage rec {
sha256 = "sha256-6cKKVOgHIoKNfGqvDWK5cwBGBDkgfyRuBRDV6fruBoA=";
};
nativeBuildInputs = [
hatchling
];
propagatedBuildInputs = [
userpath
argcomplete
@ -31,7 +38,9 @@ buildPythonPackage rec {
importlib-metadata
];
checkInputs = [ pytestCheckHook ];
checkInputs = [
pytestCheckHook
];
preCheck = ''
export HOME=$(mktemp -d)
@ -61,6 +70,7 @@ buildPythonPackage rec {
"legacy_venv"
"determination"
"json"
"test_list_short"
];
meta = with lib; {