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