diff --git a/pkgs/development/python-modules/terminaltables/default.nix b/pkgs/development/python-modules/terminaltables/default.nix new file mode 100644 index 00000000000..bb6961f77ec --- /dev/null +++ b/pkgs/development/python-modules/terminaltables/default.nix @@ -0,0 +1,21 @@ +{ stdenv +, buildPythonPackage +, fetchPypi +}: + +buildPythonPackage rec { + pname = "terminaltables"; + version = "3.1.0"; + + src = fetchPypi { + inherit pname version; + sha256 = "f3eb0eb92e3833972ac36796293ca0906e998dc3be91fbe1f8615b331b853b81"; + }; + + meta = with stdenv.lib; { + description = "Display simple tables in terminals"; + homepage = "https://github.com/Robpol86/terminaltables"; + license = licenses.mit; + }; + +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index c7eec91c11e..8f18de8d29a 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -3945,21 +3945,7 @@ in { terminado = callPackage ../development/python-modules/terminado { }; - terminaltables = buildPythonPackage rec { - name = "terminaltables-${version}"; - version = "3.1.0"; - - src = pkgs.fetchurl { - url = "mirror://pypi/t/terminaltables/${name}.tar.gz"; - sha256 = "f3eb0eb92e3833972ac36796293ca0906e998dc3be91fbe1f8615b331b853b81"; - }; - - meta = { - description = "Display simple tables in terminals"; - homepage = "https://github.com/Robpol86/terminaltables"; - license = licenses.mit; - }; - }; + terminaltables = callPackage ../development/python-modules/terminaltables { }; testscenarios = buildPythonPackage rec { name = "testscenarios-${version}";