Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

pythonPackages.termcolor: refactor move to python-modules

+22 -14
+21
pkgs/development/python-modules/termcolor/default.nix
··· 1 + { stdenv 2 + , buildPythonPackage 3 + , fetchPypi 4 + }: 5 + 6 + buildPythonPackage rec { 7 + pname = "termcolor"; 8 + version = "1.1.0"; 9 + 10 + src = fetchPypi { 11 + inherit pname version; 12 + sha256 = "1d6d69ce66211143803fbc56652b41d73b4a400a2891d7bf7a1cdf4c02de613b"; 13 + }; 14 + 15 + meta = with stdenv.lib; { 16 + description = "Termcolor"; 17 + homepage = https://pypi.python.org/pypi/termcolor; 18 + license = licenses.mit; 19 + }; 20 + 21 + }
+1 -14
pkgs/top-level/python-packages.nix
··· 4399 4399 4400 4400 datadiff = callPackage ../development/python-modules/datadiff { }; 4401 4401 4402 - termcolor = buildPythonPackage rec { 4403 - name = "termcolor-1.1.0"; 4404 - 4405 - src = pkgs.fetchurl { 4406 - url = "mirror://pypi/t/termcolor/termcolor-1.1.0.tar.gz"; 4407 - sha256 = "1d6d69ce66211143803fbc56652b41d73b4a400a2891d7bf7a1cdf4c02de613b"; 4408 - }; 4409 - 4410 - meta = { 4411 - description = "Termcolor"; 4412 - homepage = https://pypi.python.org/pypi/termcolor; 4413 - license = licenses.mit; 4414 - }; 4415 - }; 4402 + termcolor = callPackage ../development/python-modules/termcolor { }; 4416 4403 4417 4404 html2text = buildPythonPackage rec { 4418 4405 name = "html2text-2016.9.19";