From a4ff15029a66d32a115776720d46871058e98582 Mon Sep 17 00:00:00 2001 From: Chris Ostrouchov Date: Tue, 16 Oct 2018 10:42:49 -0400 Subject: [PATCH] pythonPackages.pudb: refactor move to python-modules --- .../python-modules/pudb/default.nix | 29 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 20 +------------ 2 files changed, 30 insertions(+), 19 deletions(-) create mode 100644 pkgs/development/python-modules/pudb/default.nix diff --git a/pkgs/development/python-modules/pudb/default.nix b/pkgs/development/python-modules/pudb/default.nix new file mode 100644 index 00000000000..0c76974e5d9 --- /dev/null +++ b/pkgs/development/python-modules/pudb/default.nix @@ -0,0 +1,29 @@ +{ stdenv +, buildPythonPackage +, fetchPypi +, pygments +, urwid +, isPy3k +}: + +buildPythonPackage rec { + pname = "pudb"; + version = "2016.2"; + + src = fetchPypi { + inherit pname version; + sha256 = "0njhi49d9fxbwh5p8yjx8m3jlfyzfm00b5aff6bz473pn7vxfn79"; + }; + + propagatedBuildInputs = [ pygments urwid ]; + + # Tests fail on python 3 due to writes to the read-only home directory + doCheck = !isPy3k; + + meta = with stdenv.lib; { + description = "A full-screen, console-based Python debugger"; + license = licenses.mit; + platforms = platforms.all; + }; + +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 97fb2d32fc7..47d68ba13e8 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -2056,25 +2056,7 @@ in { prov = callPackage ../development/python-modules/prov { }; - pudb = buildPythonPackage rec { - name = "pudb-2016.2"; - - src = pkgs.fetchurl { - url = "mirror://pypi/p/pudb/${name}.tar.gz"; - sha256 = "0njhi49d9fxbwh5p8yjx8m3jlfyzfm00b5aff6bz473pn7vxfn79"; - }; - - propagatedBuildInputs = with self; [ pygments urwid ]; - - # Tests fail on python 3 due to writes to the read-only home directory - doCheck = !isPy3k; - - meta = { - description = "A full-screen, console-based Python debugger"; - license = licenses.mit; - platforms = platforms.all; - }; - }; + pudb = callPackage ../development/python-modules/pudb { }; pybtex = callPackage ../development/python-modules/pybtex {};