python.pkgs.ansicolors : move to separate expression

This commit is contained in:
wisut hantanong 2017-07-19 17:23:52 +07:00
parent 9b313484de
commit 4206da05b0
2 changed files with 20 additions and 17 deletions

View File

@ -0,0 +1,19 @@
{ stdenv, buildPythonPackage, fetchPypi }:
buildPythonPackage rec {
pname = "ansicolors";
version = "1.0.2";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
sha256 = "02lmh2fbqcwr98cq13l9ql0fvyad1dcb3ap3c5xq9qwjp45m6r3n";
};
meta = with stdenv.lib; {
homepage = "https://github.com/verigak/colors/";
description = "ANSI colors for Python";
license = licenses.isc;
maintainers = with maintainers; [ copumpkin ];
};
}

View File

@ -309,23 +309,7 @@ in {
alembic = callPackage ../development/python-modules/alembic {}; alembic = callPackage ../development/python-modules/alembic {};
ansicolors = buildPythonPackage rec { ansicolors = callPackage ../development/python-modules/ansicolors {};
name = "ansicolors-${version}";
version = "1.0.2";
src = self.fetchPypi {
pname = "ansicolors";
inherit version;
sha256 = "02lmh2fbqcwr98cq13l9ql0fvyad1dcb3ap3c5xq9qwjp45m6r3n";
};
meta = {
homepage = "https://github.com/verigak/colors/";
description = "ANSI colors for Python";
license = licenses.isc;
maintainers = with maintainers; [ copumpkin ];
};
};
aniso8601 = buildPythonPackage rec { aniso8601 = buildPythonPackage rec {
name = "aniso8601-${version}"; name = "aniso8601-${version}";