From f0be1e20bc7bc0ca9234eaf95724a23028f8841d Mon Sep 17 00:00:00 2001 From: Chris Ostrouchov Date: Sat, 27 Oct 2018 09:49:37 -0400 Subject: [PATCH] pythonPackages.nose_progressive: refactor move to python-modules --- .../nose_progressive/default.nix | 32 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 19 +---------- 2 files changed, 33 insertions(+), 18 deletions(-) create mode 100644 pkgs/development/python-modules/nose_progressive/default.nix diff --git a/pkgs/development/python-modules/nose_progressive/default.nix b/pkgs/development/python-modules/nose_progressive/default.nix new file mode 100644 index 000000000000..98e34212cb8e --- /dev/null +++ b/pkgs/development/python-modules/nose_progressive/default.nix @@ -0,0 +1,32 @@ +{ stdenv +, buildPythonPackage +, fetchPypi +, nose +, pillow +, blessings +, isPy3k +}: + +buildPythonPackage rec { + pname = "nose-progressive"; + version = "1.5.1"; + + src = fetchPypi { + inherit pname version; + sha256 = "0mfbjv3dcg23q0a130670g7xpfyvgza4wxkj991xxh8w9hs43ga4"; + }; + + buildInputs = [ nose ]; + propagatedBuildInputs = [ pillow blessings ]; + + # fails with obscure error + doCheck = !isPy3k; + + meta = with stdenv.lib; { + homepage = https://github.com/erikrose/nose-progressive; + description = "A testrunner with a progress bar and smarter tracebacks"; + license = licenses.mit; + maintainers = with maintainers; [ domenkozar ]; + }; + +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 5bea3b04787d..f203fb1ffe58 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -3813,24 +3813,7 @@ in { argh = callPackage ../development/python-modules/argh { }; - nose_progressive = buildPythonPackage rec { - name = "nose-progressive-1.5.1"; - - src = pkgs.fetchurl { - url = "mirror://pypi/n/nose-progressive/${name}.tar.gz"; - sha256 = "0mfbjv3dcg23q0a130670g7xpfyvgza4wxkj991xxh8w9hs43ga4"; - }; - - buildInputs = with self; [ nose ]; - propagatedBuildInputs = with self; [ pillow blessings ]; - - # fails with obscure error - doCheck = !isPy3k; - - meta = { - maintainers = with maintainers; [ domenkozar ]; - }; - }; + nose_progressive = callPackage ../development/python-modules/nose_progressive { }; blessings = buildPythonPackage rec { name = "blessings-1.6";