Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pdm-backend,
6 httpx,
7 zstandard,
8}:
9
10buildPythonPackage rec {
11 pname = "pbs-installer";
12 version = "2026.01.14";
13 pyproject = true;
14
15 src = fetchFromGitHub {
16 owner = "frostming";
17 repo = "pbs-installer";
18 tag = version;
19 hash = "sha256-u7RdzRQRweEjCu8Rp+PkaUZg1FxpM7UssbhD0BonOtY=";
20 };
21
22 build-system = [ pdm-backend ];
23
24 optional-dependencies = {
25 all = optional-dependencies.install ++ optional-dependencies.download;
26 download = [ httpx ];
27 install = [ zstandard ];
28 };
29
30 pythonImportsCheck = [ "pbs_installer" ];
31
32 # upstream has no test
33 doCheck = false;
34
35 meta = {
36 description = "Installer for Python Build Standalone";
37 homepage = "https://github.com/frostming/pbs-installer";
38 changelog = "https://github.com/frostming/pbs-installer/releases/tag/${src.tag}";
39 license = lib.licenses.mit;
40 maintainers = [ ];
41 };
42}