summary refs log tree commit diff
path: root/pkgs/development/python-modules/editorconfig
diff options
context:
space:
mode:
authorChris Ostrouchov <chris.ostrouchov@gmail.com>2018-10-15 15:20:29 -0400
committerFrederik Rietdijk <fridh@fridh.nl>2018-10-17 07:46:55 +0200
commit63a0e8613a507a24694ae23df698c6b5c148484d (patch)
treee270a0e25252c0c89327f919b87b8f7a9e1c8a41 /pkgs/development/python-modules/editorconfig
parentf379425159ee4fd1aa01a6451be9f2f13858bf60 (diff)
downloadnixpkgs-63a0e8613a507a24694ae23df698c6b5c148484d.tar
nixpkgs-63a0e8613a507a24694ae23df698c6b5c148484d.tar.gz
nixpkgs-63a0e8613a507a24694ae23df698c6b5c148484d.tar.bz2
nixpkgs-63a0e8613a507a24694ae23df698c6b5c148484d.tar.lz
nixpkgs-63a0e8613a507a24694ae23df698c6b5c148484d.tar.xz
nixpkgs-63a0e8613a507a24694ae23df698c6b5c148484d.tar.zst
nixpkgs-63a0e8613a507a24694ae23df698c6b5c148484d.zip
pythonPackages.editorconfig: refactor move to python-modules
Diffstat (limited to 'pkgs/development/python-modules/editorconfig')
-rw-r--r--pkgs/development/python-modules/editorconfig/default.nix31
1 files changed, 31 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/editorconfig/default.nix b/pkgs/development/python-modules/editorconfig/default.nix
new file mode 100644
index 00000000000..82338bbcc8f
--- /dev/null
+++ b/pkgs/development/python-modules/editorconfig/default.nix
@@ -0,0 +1,31 @@
+{ stdenv
+, buildPythonPackage
+, fetchgit
+, cmake
+}:
+
+buildPythonPackage rec {
+  pname = "EditorConfig";
+  version = "0.12.0";
+
+  # fetchgit used to ensure test submodule is available
+  src = fetchgit {
+    url = "https://github.com/editorconfig/editorconfig-core-py";
+    rev = "refs/tags/v${version}";
+    sha256 = "0svk7id7ncygj2rnxhm7602xizljyidk4xgrl6i0xgq3829cz4bl";
+  };
+
+  buildInputs = [ cmake ];
+  checkPhase = ''
+    cmake .
+    # utf_8_char fails with python3
+    ctest -E "utf_8_char" .
+  '';
+
+  meta = with stdenv.lib; {
+    homepage = https://editorconfig.org;
+    description = "EditorConfig File Locator and Interpreter for Python";
+    license = licenses.psfl;
+  };
+
+}