8 buildPythonPackage rec {
10 inherit (cmake) version;
16 substituteInPlace "$sourceRoot/pyproject.toml" \
19 substituteInPlace "$sourceRoot/cmake/__init__.py" \
21 --subst-var-by CMAKE_BIN_DIR "${cmake}/bin"
24 inherit (cmake) setupHooks;
26 nativeBuildInputs = [ flit-core ];
28 pythonImportsCheck = [ "cmake" ];
31 description = "CMake is an open-source, cross-platform family of tools designed to build, test and package software";
33 This is a stub of the cmake package on PyPI that uses the cmake program
34 provided by nixpkgs instead of downloading cmake from the web.
36 homepage = "https://github.com/scikit-build/cmake-python-distributions";
37 license = licenses.asl20;
38 maintainers = with maintainers; [ tjni ];