at 23.11-beta 1.0 kB view raw
1{ lib 2, buildPythonPackage 3, flit-core 4, cmake 5}: 6 7buildPythonPackage rec { 8 pname = "cmake"; 9 inherit (cmake) version; 10 format = "pyproject"; 11 12 src = ./stub; 13 14 postUnpack = '' 15 substituteInPlace "$sourceRoot/pyproject.toml" \ 16 --subst-var version 17 18 substituteInPlace "$sourceRoot/cmake/__init__.py" \ 19 --subst-var version \ 20 --subst-var-by CMAKE_BIN_DIR "${cmake}/bin" 21 ''; 22 23 inherit (cmake) setupHooks; 24 25 nativeBuildInputs = [ 26 flit-core 27 ]; 28 29 pythonImportsCheck = [ 30 "cmake" 31 ]; 32 33 meta = with lib; { 34 description = "CMake is an open-source, cross-platform family of tools designed to build, test and package software"; 35 longDescription = '' 36 This is a stub of the cmake package on PyPI that uses the cmake program 37 provided by nixpkgs instead of downloading cmake from the web. 38 ''; 39 homepage = "https://github.com/scikit-build/cmake-python-distributions"; 40 license = licenses.asl20; 41 maintainers = with maintainers; [ tjni ]; 42 }; 43}