at master 994 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 flit-core, 5 cmake, 6}: 7 8buildPythonPackage { 9 pname = "cmake"; 10 inherit (cmake) version; 11 format = "pyproject"; 12 13 src = ./stub; 14 15 postUnpack = '' 16 substituteInPlace "$sourceRoot/pyproject.toml" \ 17 --subst-var version 18 19 substituteInPlace "$sourceRoot/cmake/__init__.py" \ 20 --subst-var version \ 21 --subst-var-by CMAKE_BIN_DIR "${cmake}/bin" 22 ''; 23 24 inherit (cmake) setupHooks; 25 26 nativeBuildInputs = [ flit-core ]; 27 28 pythonImportsCheck = [ "cmake" ]; 29 30 meta = with lib; { 31 description = "CMake is an open-source, cross-platform family of tools designed to build, test and package software"; 32 longDescription = '' 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. 35 ''; 36 homepage = "https://github.com/scikit-build/cmake-python-distributions"; 37 license = licenses.asl20; 38 maintainers = with maintainers; [ tjni ]; 39 }; 40}