linux_xanmod: 5.11.14 -> 5.11.15
[NixPkgs.git] / pkgs / development / python-modules / nose-focus / default.nix
blob2805dc4545af121e10f613bd201bf23a641b5891
1 { lib, buildPythonPackage, fetchFromGitHub, six, nose, nose-of-yeti
2 , nose-pattern-exclude, which }:
4 buildPythonPackage rec {
5   pname = "nose-focus";
6   version = "0.1.3";
8   propagatedBuildInputs = [ six ];
10   checkInputs = [ nose nose-of-yeti nose-pattern-exclude which ];
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   };
24   checkPhase = ''
25     patchShebangs test.sh
26     ./test.sh
27   '';
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   };