blob: 07c3202d5311397df55152124e1b2cb0ba8d7c2d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
{
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 ];
};
}
|