mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-08-26 10:14:48 +00:00
47 lines
935 B
Nix
47 lines
935 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
setuptools,
|
|
setuptools-scm,
|
|
attrs,
|
|
nix-update-script,
|
|
}:
|
|
|
|
buildPythonPackage (finalAttrs: {
|
|
pname = "cmake-parser";
|
|
version = "0.9.2";
|
|
pyproject = true;
|
|
__structuredAttrs = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "roehling";
|
|
repo = "cmake_parser";
|
|
tag = finalAttrs.version;
|
|
hash = "sha256-4hJYlnDOuO+Rs1r9/scWK+BZAU9zSH5BTEvkiS3LUh8=";
|
|
};
|
|
|
|
build-system = [
|
|
setuptools
|
|
setuptools-scm
|
|
];
|
|
|
|
dependencies = [
|
|
attrs
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"cmake_parser"
|
|
];
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
meta = {
|
|
description = "Parse CMake files with Python";
|
|
homepage = "https://github.com/roehling/cmake_parser";
|
|
changelog = "https://github.com/roehling/cmake_parser/blob/${finalAttrs.src.rev}/CHANGELOG.rst";
|
|
license = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [ nim65s ];
|
|
};
|
|
})
|