2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
2020-04-24 23:36:52 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchgit
|
|
|
|
, cmake
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "editorconfig";
|
2021-07-04 02:40:35 +00:00
|
|
|
version = "0.12.3";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
# fetchgit used to ensure test submodule is available
|
|
|
|
src = fetchgit {
|
|
|
|
url = "https://github.com/editorconfig/editorconfig-core-py";
|
2021-07-04 02:40:35 +00:00
|
|
|
rev = "1a8fb62b9941fded9e4fb83a3d0599427f5484cb"; # Not tagged
|
|
|
|
sha256 = "0vx8rl7kii72965jsi01mdsz9rfi1q9bwy13x47iaqm6rmcwc1rb";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-07-04 02:40:35 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
dontUseCmakeConfigure = true;
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
cmake .
|
2021-07-04 02:40:35 +00:00
|
|
|
# utf_8_char fails with Python 3
|
2020-04-24 23:36:52 +00:00
|
|
|
ctest -E "utf_8_char" .
|
|
|
|
'';
|
|
|
|
|
2021-07-04 02:40:35 +00:00
|
|
|
pythonImportsCheck = [ "editorconfig" ];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "EditorConfig File Locator and Interpreter for Python";
|
2021-07-04 02:40:35 +00:00
|
|
|
homepage = "https://editorconfig.org";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.psfl;
|
2021-07-04 02:40:35 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|