075e8c2c4f
This is almost all find-and-replace. I manually edited: * pkgs/development/python-modules/notifications-android-tv/default.nix, * pkgs/servers/home-assistant/default.nix, * pkgs/development/tools/continuous-integration/buildbot/master.nix A few files have not been changed in this PR because they would cause rebuilds. This PR should have 0 rebuilds.
51 lines
1.1 KiB
Nix
51 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
flit-core,
|
|
ninja,
|
|
}:
|
|
|
|
buildPythonPackage {
|
|
pname = "ninja";
|
|
inherit (ninja) version;
|
|
pyproject = true;
|
|
|
|
src = ./stub;
|
|
|
|
postUnpack = ''
|
|
substituteInPlace "$sourceRoot/pyproject.toml" \
|
|
--subst-var version
|
|
|
|
substituteInPlace "$sourceRoot/ninja/__init__.py" \
|
|
--subst-var version \
|
|
--subst-var-by BIN_DIR "${ninja}/bin"
|
|
'';
|
|
|
|
inherit (ninja) setupHook;
|
|
|
|
nativeBuildInputs = [ flit-core ];
|
|
|
|
preBuild = ''
|
|
cp "${ninja.src}/misc/ninja_syntax.py" ninja/ninja_syntax.py
|
|
'';
|
|
|
|
pythonImportsCheck = [
|
|
"ninja"
|
|
"ninja.ninja_syntax"
|
|
];
|
|
|
|
meta = {
|
|
description = "Small build system with a focus on speed";
|
|
mainProgram = "ninja";
|
|
longDescription = ''
|
|
This is a stub of the ninja package on PyPI that uses the ninja program
|
|
provided by nixpkgs instead of downloading ninja from the web.
|
|
'';
|
|
homepage = "https://github.com/scikit-build/ninja-python-distributions";
|
|
license = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [
|
|
_999eagle
|
|
];
|
|
};
|
|
}
|