From 85731ef51c8b4f7285547633f9b4eb99956a6199 Mon Sep 17 00:00:00 2001 From: Chris Ostrouchov Date: Mon, 15 Oct 2018 16:30:32 -0400 Subject: [PATCH] pythonPackages.ipdbplugin: refactor move to python-modules --- .../python-modules/ipdbplugin/default.nix | 26 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 9 +------ 2 files changed, 27 insertions(+), 8 deletions(-) create mode 100644 pkgs/development/python-modules/ipdbplugin/default.nix diff --git a/pkgs/development/python-modules/ipdbplugin/default.nix b/pkgs/development/python-modules/ipdbplugin/default.nix new file mode 100644 index 000000000000..1f5435461abc --- /dev/null +++ b/pkgs/development/python-modules/ipdbplugin/default.nix @@ -0,0 +1,26 @@ +{ stdenv +, buildPythonPackage +, fetchPypi +, nose +, ipython +}: + +buildPythonPackage rec { + pname = "ipdbplugin"; + version = "1.4"; + + src = fetchPypi { + inherit pname version; + sha256 = "4778d78b5d0af1a2a6d341aed9e72eb73b1df6b179e145b4845d3a209137029c"; + }; + + propagatedBuildInputs = [ nose ipython ]; + + meta = with stdenv.lib; { + homepage = http://github.com/flavioamieiro/nose-ipdb/tree/master; + description = "Nose plugin to use iPdb instead of Pdb when tests fail"; + license = licenses.lgpl2; + maintainers = [ maintainers.costrouc ]; + }; + +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 2bebd5a01fdb..bda9da7b9fa5 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -5593,14 +5593,7 @@ in { ipdb = callPackage ../development/python-modules/ipdb { }; - ipdbplugin = buildPythonPackage { - name = "ipdbplugin-1.4"; - src = pkgs.fetchurl { - url = "mirror://pypi/i/ipdbplugin/ipdbplugin-1.4.tar.gz"; - sha256 = "4778d78b5d0af1a2a6d341aed9e72eb73b1df6b179e145b4845d3a209137029c"; - }; - propagatedBuildInputs = with self; [ self.nose self.ipython ]; - }; + ipdbplugin = callPackage ../development/python-modules/ipdbplugin { }; pythonIRClib = buildPythonPackage rec { name = "irclib-${version}";