summaryrefslogtreecommitdiffstats
path: root/pkgs
diff options
context:
space:
mode:
authorAlexandre Peyroux <alex@px.io>2016-10-02 16:57:07 +0200
committerJörg Thalheim <joerg@higgsboson.tk>2016-10-03 16:30:09 +0200
commit34767dec2158c511cdecfe11ec3e696d05aca49a (patch)
tree7063883cd79ebb986a0ff2259f3034cc53d87367 /pkgs
parentf3ed2b60a63253c0d92381dbd6dd7e982a17c6ab (diff)
EditorConfig: init at 0.12.0
fixes #19163
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/top-level/python-packages.nix25
1 files changed, 25 insertions, 0 deletions
diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix
index 6716c2c88f0d..e6fcbb6b3b13 100644
--- a/pkgs/top-level/python-packages.nix
+++ b/pkgs/top-level/python-packages.nix
@@ -6206,6 +6206,31 @@ in modules // {
};
};
+ EditorConfig = buildPythonPackage rec {
+ name = "EditorConfig-${version}";
+ version = "0.12.0";
+
+ # fetchgit used to ensure test submodule is available
+ src = pkgs.fetchgit {
+ url = "https://github.com/editorconfig/editorconfig-core-py";
+ rev = "refs/tags/v${version}";
+ sha256 = "0svk7id7ncygj2rnxhm7602xizljyidk4xgrl6i0xgq3829cz4bl";
+ };
+
+ buildInputs = [ pkgs.cmake ];
+ checkPhase = ''
+ cmake .
+ # utf_8_char fails with python3
+ ctest -E "utf_8_char" .
+ '';
+
+ meta = {
+ homepage = "http://editorconfig.org";
+ description = "EditorConfig File Locator and Interpreter for Python";
+ license = stdenv.lib.licenses.psfl;
+ };
+ };
+
elasticsearch = buildPythonPackage (rec {
name = "elasticsearch-1.9.0";