3
0
Fork 0
forked from mirrors/nixpkgs

pythonPackages.colored: refactor move to python-modules

This commit is contained in:
Chris Ostrouchov 2018-10-16 17:02:03 -04:00 committed by Frederik Rietdijk
parent 8b5d562d25
commit 0dafa8e8be
2 changed files with 25 additions and 12 deletions

View file

@ -0,0 +1,24 @@
{ stdenv
, buildPythonPackage
, fetchPypi
}:
buildPythonPackage rec {
pname = "colored";
version = "1.1.5";
src = fetchPypi {
inherit pname version;
sha256 = "1r1vsypk8v7az82d66bidbxlndx1h7xd4m43hpg1a6hsjr30wrm3";
};
# No proper test suite
doCheck = false;
meta = with stdenv.lib; {
homepage = https://gitlab.com/dslackw/colored;
description = "Simple library for color and formatting to terminal";
license = licenses.mit;
};
}

View file

@ -2462,18 +2462,7 @@ in {
hypothesis = callPackage ../development/python-modules/hypothesis { };
colored = buildPythonPackage rec {
name = "colored-${version}";
version = "1.1.5";
src = pkgs.fetchurl {
url = "mirror://pypi/c/colored/${name}.tar.gz";
sha256 = "1r1vsypk8v7az82d66bidbxlndx1h7xd4m43hpg1a6hsjr30wrm3";
};
# No proper test suite
doCheck = false;
};
colored = callPackage ../development/python-modules/colored { };
xdis = buildPythonPackage rec {
name = "xdis-${version}";