Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / editorconfig / default.nix
blobf074fcc4634aff2c13d2cfea3087e662531bb1a7
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , setuptools
5 , cmake
6 }:
8 buildPythonPackage rec {
9   pname = "editorconfig";
10   version = "0.12.4";
11   pyproject = true;
13   src = fetchFromGitHub {
14     owner = "editorconfig";
15     repo = "editorconfig-core-py";
16     rev = "v${version}";
17     hash = "sha256-+m674bLj6xs7MWU+8BMixEwy7/TjyES0lvCLLogTDHQ=";
18     fetchSubmodules = true;
19   };
21   nativeBuildInputs = [
22     setuptools
23   ];
25   nativeCheckInputs = [
26     cmake
27   ];
29   dontUseCmakeConfigure = true;
31   checkPhase = ''
32     runHook preCheck
34     cmake .
35     ctest .
37     runHook postCheck
38   '';
40   pythonImportsCheck = [ "editorconfig" ];
42   meta = with lib; {
43     description = "EditorConfig File Locator and Interpreter for Python";
44     mainProgram = "editorconfig";
45     homepage = "https://github.com/editorconfig/editorconfig-core-py";
46     license = licenses.psfl;
47     maintainers = with maintainers; [ nickcao ];
48   };