1{ lib, buildPythonPackage, fetchFromGitHub, six, nose, nose-of-yeti
2, nose-pattern-exclude, which }:
3
4buildPythonPackage rec {
5 pname = "nose-focus";
6 version = "0.1.3";
7
8 propagatedBuildInputs = [ six ];
9
10 checkInputs = [ nose nose-of-yeti nose-pattern-exclude which ];
11
12 # PyPI doesn't contain tests so let's use GitHub. See:
13 # https://github.com/delfick/nose-focus/issues/4
14 #
15 # However, the versions aren't tagged on GitHub so need to use a manually
16 # checked revision. See: https://github.com/delfick/nose-focus/issues/5
17 src = fetchFromGitHub {
18 owner = "delfick";
19 repo = pname;
20 rev = "4dac785ba07ed6e1df61b0fe2854685eef3bd115";
21 sha256 = "0gpd4j4433dc5ifh31w08c3bx862md0qm1ix6aam1rz4ayxpq51f";
22 };
23
24 checkPhase = ''
25 patchShebangs test.sh
26 ./test.sh
27 '';
28
29 meta = with lib; {
30 description = "Decorator and plugin to make nose focus on specific tests";
31 homepage = "https://nose-focus.readthedocs.io/en/latest/";
32 license = licenses.wtfpl;
33 maintainers = with maintainers; [ jluttine ];
34 };
35}