2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
flit-core,
|
|
|
|
cmake,
|
2023-10-09 19:29:22 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "cmake";
|
|
|
|
inherit (cmake) version;
|
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
src = ./stub;
|
|
|
|
|
|
|
|
postUnpack = ''
|
|
|
|
substituteInPlace "$sourceRoot/pyproject.toml" \
|
|
|
|
--subst-var version
|
|
|
|
|
|
|
|
substituteInPlace "$sourceRoot/cmake/__init__.py" \
|
|
|
|
--subst-var version \
|
|
|
|
--subst-var-by CMAKE_BIN_DIR "${cmake}/bin"
|
|
|
|
'';
|
|
|
|
|
|
|
|
inherit (cmake) setupHooks;
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ flit-core ];
|
2023-10-09 19:29:22 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "cmake" ];
|
2023-10-09 19:29:22 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "CMake is an open-source, cross-platform family of tools designed to build, test and package software";
|
|
|
|
longDescription = ''
|
|
|
|
This is a stub of the cmake package on PyPI that uses the cmake program
|
|
|
|
provided by nixpkgs instead of downloading cmake from the web.
|
|
|
|
'';
|
|
|
|
homepage = "https://github.com/scikit-build/cmake-python-distributions";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ tjni ];
|
|
|
|
};
|
|
|
|
}
|