2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pythonOlder,
|
|
|
|
pdm-backend,
|
|
|
|
httpx,
|
|
|
|
zstandard,
|
2024-04-21 15:54:59 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pbs-installer";
|
2024-06-05 15:53:02 +00:00
|
|
|
version = "2024.4.24";
|
2024-04-21 15:54:59 +00:00
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "frostming";
|
|
|
|
repo = "pbs-installer";
|
2024-06-05 15:53:02 +00:00
|
|
|
rev = "refs/tags/${version}";
|
|
|
|
hash = "sha256-a35xQEdo7OOFlXk2vsTdVpEhqPRKFZRQzNnZw3c7ybA=";
|
2024-04-21 15:54:59 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
build-system = [ pdm-backend ];
|
2024-04-21 15:54:59 +00:00
|
|
|
|
|
|
|
optional-dependencies = {
|
|
|
|
all = optional-dependencies.install ++ optional-dependencies.download;
|
2024-06-05 15:53:02 +00:00
|
|
|
download = [ httpx ];
|
|
|
|
install = [ zstandard ];
|
2024-04-21 15:54:59 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "pbs_installer" ];
|
|
|
|
|
|
|
|
# upstream has no test
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Installer for Python Build Standalone";
|
|
|
|
homepage = "https://github.com/frostming/pbs-installer";
|
|
|
|
changelog = "https://github.com/frostming/pbs-installer/releases/tag/${version}";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ ];
|
|
|
|
};
|
|
|
|
}
|