diff --git a/pkgs/development/python-modules/veryprettytable/default.nix b/pkgs/development/python-modules/veryprettytable/default.nix new file mode 100644 index 000000000000..8d71e6331f5b --- /dev/null +++ b/pkgs/development/python-modules/veryprettytable/default.nix @@ -0,0 +1,25 @@ +{ stdenv +, buildPythonPackage +, fetchPypi +, termcolor +, colorama +}: + +buildPythonPackage rec { + pname = "veryprettytable"; + version = "0.8.1"; + + src = fetchPypi { + inherit pname version; + sha256 = "1k1rifz8x6qcicmx2is9vgxcj0qb2f5pvzrp7zhmvbmci3yack3f"; + }; + + propagatedBuildInputs = [ termcolor colorama ]; + + meta = with stdenv.lib; { + description = "A simple Python library for easily displaying tabular data in a visually appealing ASCII table format"; + homepage = https://github.com/smeggingsmegger/VeryPrettyTable; + license = licenses.free; + }; + +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 32c4d4c3a328..21bd139edcf9 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -4296,23 +4296,7 @@ in { versiontools = callPackage ../development/python-modules/versiontools { }; - veryprettytable = buildPythonPackage rec { - name = "veryprettytable-${version}"; - version = "0.8.1"; - - src = pkgs.fetchurl { - url = "mirror://pypi/v/veryprettytable/${name}.tar.gz"; - sha256 = "1k1rifz8x6qcicmx2is9vgxcj0qb2f5pvzrp7zhmvbmci3yack3f"; - }; - - propagatedBuildInputs = [ self.termcolor self.colorama ]; - - meta = { - description = "A simple Python library for easily displaying tabular data in a visually appealing ASCII table format"; - homepage = https://github.com/smeggingsmegger/VeryPrettyTable; - license = licenses.free; - }; - }; + veryprettytable = callPackage ../development/python-modules/veryprettytable { }; graphite-web = callPackage ../development/python-modules/graphite-web { };