This commit is contained in:
abeltavares
2025-02-21 12:20:05 +00:00
parent f1e6ff8bd8
commit e8adba7f34
+16 -11
View File
@@ -6,6 +6,8 @@
installShellFiles,
pipenv,
runCommand,
writableTmpDirAsHomeHook,
versionCheckHook,
}:
with python3.pkgs;
@@ -32,7 +34,7 @@ in
buildPythonApplication rec {
pname = "pipenv";
version = "2024.4.0";
format = "pyproject";
pyproject = true;
src = fetchFromGitHub {
owner = "pypa";
@@ -43,10 +45,12 @@ buildPythonApplication rec {
env.LC_ALL = "en_US.UTF-8";
build-system = [
setuptools
];
nativeBuildInputs = [
installShellFiles
setuptools
wheel
];
postPatch = ''
@@ -60,10 +64,6 @@ buildPythonApplication rec {
propagatedBuildInputs = runtimeDeps python3.pkgs;
preCheck = ''
export HOME="$TMPDIR"
'';
nativeCheckInputs = [
mock
pytestCheckHook
@@ -71,8 +71,12 @@ buildPythonApplication rec {
pytest-cov-stub
pytz
requests
writableTmpDirAsHomeHook
versionCheckHook
];
versionCheckProgramArg = [ "--version" ];
disabledTests = [
# this test wants access to the internet
"test_download_file"
@@ -104,10 +108,11 @@ buildPythonApplication rec {
--fish <(_PIPENV_COMPLETE=fish_source $out/bin/pipenv)
'';
meta = with lib; {
meta = {
description = "Python Development Workflow for Humans";
license = licenses.mit;
platforms = platforms.all;
maintainers = with maintainers; [ berdario ];
license = lib.licenses.mit;
platforms = lib.platforms.all;
maintainers = with lib.maintainers; [ berdario ];
mainProgram = "pipenv";
};
}