pythonPackages.editorconfig: refactor move to python-modules

This commit is contained in:
Chris Ostrouchov 2018-10-15 15:20:29 -04:00 committed by Frederik Rietdijk
parent f379425159
commit 63a0e8613a
2 changed files with 32 additions and 24 deletions

View File

@ -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;
};
}

View File

@ -1712,30 +1712,7 @@ in {
pythonPackages = self;
}));
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 = https://editorconfig.org;
description = "EditorConfig File Locator and Interpreter for Python";
license = stdenv.lib.licenses.psfl;
};
};
EditorConfig = callPackage ../development/python-modules/editorconfig { };
edward = callPackage ../development/python-modules/edward { };