2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2018-10-15 20:20:29 +01:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchgit
|
|
|
|
, cmake
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2019-09-06 14:17:31 +01:00
|
|
|
pname = "editorconfig";
|
|
|
|
version = "0.12.2";
|
2018-10-15 20:20:29 +01:00
|
|
|
|
|
|
|
# fetchgit used to ensure test submodule is available
|
|
|
|
src = fetchgit {
|
|
|
|
url = "https://github.com/editorconfig/editorconfig-core-py";
|
2019-09-06 14:17:31 +01:00
|
|
|
rev = "596da5e06ebee05bdbdc6224203c79c4d3c6486a"; # Not tagged
|
|
|
|
sha256 = "05cbp971b0zix7kfxkk7ndxb4ax1l21frwc00d4g78mk4sdz6dig";
|
2018-10-15 20:20:29 +01:00
|
|
|
};
|
|
|
|
|
2019-02-15 09:08:27 +00:00
|
|
|
nativeBuildInputs = [ cmake ];
|
2019-09-06 14:17:31 +01:00
|
|
|
|
|
|
|
dontUseCmakeConfigure = true;
|
|
|
|
|
2018-10-15 20:20:29 +01:00
|
|
|
checkPhase = ''
|
|
|
|
cmake .
|
|
|
|
# utf_8_char fails with python3
|
|
|
|
ctest -E "utf_8_char" .
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://editorconfig.org";
|
2018-10-15 20:20:29 +01:00
|
|
|
description = "EditorConfig File Locator and Interpreter for Python";
|
|
|
|
license = licenses.psfl;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|