pythonPackages.nose-focus: init at 0.1.3

This commit is contained in:
Jaakko Luttinen 2018-10-27 14:55:19 +03:00 committed by Maximilian Bosch
parent f5f7f1510d
commit 0f81ac7737
No known key found for this signature in database
GPG Key ID: 091DBF4D1FC46B8E
2 changed files with 37 additions and 0 deletions

View File

@ -0,0 +1,35 @@
{ stdenv, buildPythonPackage, fetchFromGitHub, six, nose, nose-of-yeti
, nose-pattern-exclude, which }:
buildPythonPackage rec {
pname = "nose-focus";
version = "0.1.3";
propagatedBuildInputs = [ six ];
checkInputs = [ nose nose-of-yeti nose-pattern-exclude which ];
# PyPI doesn't contain tests so let's use GitHub. See:
# https://github.com/delfick/nose-focus/issues/4
#
# However, the versions aren't tagged on GitHub so need to use a manually
# checked revision. See: https://github.com/delfick/nose-focus/issues/5
src = fetchFromGitHub {
owner = "delfick";
repo = pname;
rev = "4dac785ba07ed6e1df61b0fe2854685eef3bd115";
sha256 = "0gpd4j4433dc5ifh31w08c3bx862md0qm1ix6aam1rz4ayxpq51f";
};
checkPhase = ''
patchShebangs test.sh
./test.sh
'';
meta = with stdenv.lib; {
description = "Decorator and plugin to make nose focus on specific tests";
homepage = https://nose-focus.readthedocs.io/en/latest/;
license = licenses.wtfpl;
maintainers = with maintainers; [ jluttine ];
};
}

View File

@ -3066,6 +3066,8 @@ in {
nose-exclude = callPackage ../development/python-modules/nose-exclude { };
nose-focus = callPackage ../development/python-modules/nose-focus { };
nose2 = callPackage ../development/python-modules/nose2 { };
nose-cover3 = callPackage ../development/python-modules/nose-cover3 { };