1{ 2 lib, 3 buildPythonPackage, 4 cmake, 5 fetchFromGitHub, 6 gitpython, 7 ninja, 8 setuptools, 9 setuptools-scm, 10}: 11 12buildPythonPackage rec { 13 pname = "cmake-build-extension"; 14 version = "0.6.1"; 15 pyproject = true; 16 17 src = fetchFromGitHub { 18 owner = "diegoferigo"; 19 repo = "cmake-build-extension"; 20 tag = "v${version}"; 21 hash = "sha256-taAwxa7Sv+xc8xJRnNM6V7WPcL+TWZOkngwuqjAslzc="; 22 }; 23 24 build-system = [ 25 setuptools 26 setuptools-scm 27 ]; 28 29 dependencies = [ 30 cmake 31 ninja 32 gitpython 33 ]; 34 35 dontUseCmakeConfigure = true; 36 37 pythonImportsCheck = [ "cmake_build_extension" ]; 38 39 doPythonRuntimeDepsCheck = false; 40 41 meta = { 42 description = "Setuptools extension to build and package CMake projects"; 43 homepage = "https://github.com/diegoferigo/cmake-build-extension"; 44 changelog = "https://github.com/diegoferigo/cmake-build-extension/releases/tag/v${version}"; 45 license = lib.licenses.mit; 46 maintainers = with lib.maintainers; [ scoder12 ]; 47 }; 48}