From 962ff0296f989db63e8687731db3410b0f2d6a98 Mon Sep 17 00:00:00 2001 From: Chris Ostrouchov Date: Wed, 17 Oct 2018 01:09:53 -0400 Subject: [PATCH] pythonPackages.nose-cover3: refactor move to python-modules --- .../python-modules/nose-cover3/default.nix | 27 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 21 +-------------- 2 files changed, 28 insertions(+), 20 deletions(-) create mode 100644 pkgs/development/python-modules/nose-cover3/default.nix diff --git a/pkgs/development/python-modules/nose-cover3/default.nix b/pkgs/development/python-modules/nose-cover3/default.nix new file mode 100644 index 000000000000..273c0ab042f9 --- /dev/null +++ b/pkgs/development/python-modules/nose-cover3/default.nix @@ -0,0 +1,27 @@ +{ stdenv +, buildPythonPackage +, fetchPypi +, nose +}: + +buildPythonPackage rec { + pname = "nose-cover3"; + version = "0.1.0"; + + src = fetchPypi { + inherit pname version; + sha256 = "1la4hhc1yszjpcchvkqk5xmzlb2g1b3fgxj9wwc58qc549whlcc1"; + }; + + propagatedBuildInputs = [ nose ]; + + # No tests included + doCheck = false; + + meta = with stdenv.lib; { + description = "Coverage 3.x support for Nose"; + homepage = https://github.com/ask/nosecover3; + license = licenses.lgpl21; + }; + +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 7cd3e20adde8..a83f6162cfd1 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -2983,26 +2983,7 @@ in { nose2 = callPackage ../development/python-modules/nose2 { }; - nose-cover3 = buildPythonPackage rec { - name = "nose-cover3-${version}"; - version = "0.1.0"; - - src = pkgs.fetchurl { - url = "mirror://pypi/n/nose-cover3/${name}.tar.gz"; - sha256 = "1la4hhc1yszjpcchvkqk5xmzlb2g1b3fgxj9wwc58qc549whlcc1"; - }; - - propagatedBuildInputs = with self; [ nose ]; - - # No tests included - doCheck = false; - - meta = { - description = "Coverage 3.x support for Nose"; - homepage = https://github.com/ask/nosecover3; - license = licenses.lgpl21; - }; - }; + nose-cover3 = callPackage ../development/python-modules/nose-cover3 { }; nosexcover = buildPythonPackage (rec { name = "nosexcover-1.0.10";