From 9ed9014ab59a907adcf337da7e0d3d6c1335d09b Mon Sep 17 00:00:00 2001 From: Chris Ostrouchov Date: Sun, 28 Oct 2018 11:19:45 -0400 Subject: [PATCH] pythonPackages.terminaltables: refactor move to python-modules --- .../python-modules/terminaltables/default.nix | 21 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 16 +------------- 2 files changed, 22 insertions(+), 15 deletions(-) create mode 100644 pkgs/development/python-modules/terminaltables/default.nix 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}";