python.pkgs.ansicolor: move to separate expression

This commit is contained in:
wisut hantanong 2017-07-14 19:34:28 +07:00 committed by Jörg Thalheim
parent 2d546a98e2
commit 85239d1455
2 changed files with 20 additions and 16 deletions

View File

@ -0,0 +1,19 @@
{ stdenv, buildPythonPackage, fetchPypi }:
buildPythonPackage rec {
pname = "ansicolor";
version = "0.2.4";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
sha256 = "0zlkk9706xn5yshwzdn8xsfkim8iv44zsl6qjwg2f4gn62rqky1h";
};
meta = with stdenv.lib; {
homepage = "https://github.com/numerodix/ansicolor/";
description = "A library to produce ansi color output and colored highlighting and diffing";
license = licenses.asl20;
maintainers = with maintainers; [ andsild ];
};
}

View File

@ -100,22 +100,7 @@ in {
agate-sql = callPackage ../development/python-modules/agate-sql { };
ansicolor = buildPythonPackage rec {
name = "ansicolor-${version}";
version = "0.2.4";
src = pkgs.fetchurl{
url = "mirror://pypi/a/ansicolor/${name}.tar.gz";
sha256 = "0zlkk9706xn5yshwzdn8xsfkim8iv44zsl6qjwg2f4gn62rqky1h";
};
meta = {
homepage = "https://github.com/numerodix/ansicolor/";
description = "A library to produce ansi color output and colored highlighting and diffing";
license = licenses.asl20;
maintainers = with maintainers; [ andsild ];
};
};
ansicolor = callPackage ../development/python-modules/ansicolor { };
asn1crypto = callPackage ../development/python-modules/asn1crypto { };