567e8dfd8e
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
47 lines
907 B
Nix
47 lines
907 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
setuptools,
|
|
cmake,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "editorconfig";
|
|
version = "0.17.1";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "editorconfig";
|
|
repo = "editorconfig-core-py";
|
|
rev = "v${version}";
|
|
hash = "sha256-3wEW2FMBKBS9mekYgmYG3Ohd3plCtYDFejwG3W6B9IA=";
|
|
fetchSubmodules = true;
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
nativeCheckInputs = [ cmake ];
|
|
|
|
dontUseCmakeConfigure = true;
|
|
|
|
checkPhase = ''
|
|
runHook preCheck
|
|
|
|
cmake .
|
|
ctest .
|
|
|
|
runHook postCheck
|
|
'';
|
|
|
|
pythonImportsCheck = [ "editorconfig" ];
|
|
|
|
meta = {
|
|
description = "EditorConfig File Locator and Interpreter for Python";
|
|
mainProgram = "editorconfig";
|
|
homepage = "https://github.com/editorconfig/editorconfig-core-py";
|
|
license = lib.licenses.psfl;
|
|
maintainers = with lib.maintainers; [ nickcao ];
|
|
};
|
|
}
|