8 buildPythonPackage rec {
10 inherit (ninja) version;
16 substituteInPlace "$sourceRoot/pyproject.toml" \
19 substituteInPlace "$sourceRoot/ninja/__init__.py" \
21 --subst-var-by BIN_DIR "${ninja}/bin"
24 inherit (ninja) setupHook;
26 nativeBuildInputs = [ flit-core ];
29 cp "${ninja.src}/misc/ninja_syntax.py" ninja/ninja_syntax.py
32 pythonImportsCheck = [
38 description = "Small build system with a focus on speed";
39 mainProgram = "ninja";
41 This is a stub of the ninja package on PyPI that uses the ninja program
42 provided by nixpkgs instead of downloading ninja from the web.
44 homepage = "https://github.com/scikit-build/ninja-python-distributions";
45 license = licenses.asl20;
46 maintainers = with maintainers; [