diff options
author | Jaakko Luttinen <jaakko.luttinen@iki.fi> | 2018-10-27 14:55:19 +0300 |
---|---|---|
committer | Maximilian Bosch <maximilian@mbosch.me> | 2018-11-29 12:38:27 +0100 |
commit | 0f81ac7737ba0de7a65fb3578942534544cab2c1 (patch) | |
tree | ca82f15668b121471dd1c966cf252aad38eac763 /pkgs/development/python-modules/nose-focus | |
parent | f5f7f1510dc1df14dc58d95fe77735e2fb9c6bb1 (diff) |
pythonPackages.nose-focus: init at 0.1.3
Diffstat (limited to 'pkgs/development/python-modules/nose-focus')
-rw-r--r-- | pkgs/development/python-modules/nose-focus/default.nix | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/nose-focus/default.nix b/pkgs/development/python-modules/nose-focus/default.nix new file mode 100644 index 0000000000000..ef86a35b30411 --- /dev/null +++ b/pkgs/development/python-modules/nose-focus/default.nix @@ -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 ]; + }; +} |