python.pkgs.ansi: move to python-modules and fix test with python3

This commit is contained in:
Orivej Desh 2017-12-24 04:40:02 +00:00
parent 1f1081d701
commit 69daf1235b
2 changed files with 16 additions and 9 deletions

View File

@ -0,0 +1,15 @@
{ buildPythonPackage, fetchPypi }:
buildPythonPackage rec {
pname = "ansi";
version = "0.1.3";
src = fetchPypi {
inherit pname version;
sha256 = "06y6470bzvlqys3zi2vc68rmk9n05v1ibral14gbfpgfa8fzy7pg";
};
checkPhase = ''
python -c "import ansi.color"
'';
}

View File

@ -22840,15 +22840,7 @@ EOF
doCheck = false;
};
ansi = buildPythonPackage rec {
name = "ansi-${version}";
version = "0.1.3";
src = pkgs.fetchurl {
url = "mirror://pypi/a/ansi/${name}.tar.gz";
sha256 = "06y6470bzvlqys3zi2vc68rmk9n05v1ibral14gbfpgfa8fzy7pg";
};
};
ansi = callPackage ../development/python-modules/ansi { };
pygments-markdown-lexer = buildPythonPackage rec {
name = "pygments-markdown-lexer-${version}";