pythonPackages.editorconfig: refactor move to python-modules
This commit is contained in:
parent
f379425159
commit
63a0e8613a
31
pkgs/development/python-modules/editorconfig/default.nix
Normal file
31
pkgs/development/python-modules/editorconfig/default.nix
Normal 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;
|
||||
};
|
||||
|
||||
}
|
@ -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 { };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user