python3Packages.behave: 1.2.6 -> 1.2.7.dev1
This commit is contained in:
parent
2126015ad4
commit
cedbb56d83
1 changed files with 15 additions and 21 deletions
|
@ -1,30 +1,24 @@
|
||||||
{ stdenv, fetchPypi, fetchpatch
|
{ stdenv, fetchFromGitHub
|
||||||
, buildPythonApplication, python, pythonOlder
|
, buildPythonApplication, python
|
||||||
, mock, nose, pathpy, pyhamcrest, pytest_4
|
, mock, pathpy, pyhamcrest, pytest, pytest-html
|
||||||
, glibcLocales, parse, parse-type, six
|
, glibcLocales
|
||||||
, traceback2
|
, colorama, cucumber-tag-expressions, parse, parse-type, six
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonApplication rec {
|
buildPythonApplication rec {
|
||||||
pname = "behave";
|
pname = "behave";
|
||||||
version = "1.2.6";
|
version = "1.2.7.dev1";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchFromGitHub {
|
||||||
inherit pname version;
|
owner = "behave";
|
||||||
sha256 = "11hsz365qglvpp1m1w16239c3kiw15lw7adha49lqaakm8kj6rmr";
|
repo = pname;
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "1ssgixmqlg8sxsyalr83a1970njc2wg3zl8idsmxnsljwacv7qwv";
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = [
|
checkInputs = [ mock pathpy pyhamcrest pytest pytest-html ];
|
||||||
# Fix tests on Python 2.7
|
|
||||||
(fetchpatch {
|
|
||||||
url = "https://github.com/behave/behave/commit/0a9430a94881cd18437deb03d2ae23afea0f009c.patch";
|
|
||||||
sha256 = "1nrh9ii6ik6gw2kjh8a6jk4mg5yqw3jfjfllbyxardclsab62ydy";
|
|
||||||
})
|
|
||||||
];
|
|
||||||
|
|
||||||
checkInputs = [ mock nose pathpy pyhamcrest pytest_4 ];
|
|
||||||
buildInputs = [ glibcLocales ];
|
buildInputs = [ glibcLocales ];
|
||||||
propagatedBuildInputs = [ parse parse-type six ] ++ stdenv.lib.optional (pythonOlder "3.0") traceback2;
|
propagatedBuildInputs = [ colorama cucumber-tag-expressions parse parse-type six ];
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
patchShebangs bin
|
patchShebangs bin
|
||||||
|
@ -36,7 +30,7 @@ buildPythonApplication rec {
|
||||||
export LANG="en_US.UTF-8"
|
export LANG="en_US.UTF-8"
|
||||||
export LC_ALL="en_US.UTF-8"
|
export LC_ALL="en_US.UTF-8"
|
||||||
|
|
||||||
pytest test tests
|
pytest tests
|
||||||
|
|
||||||
${python.interpreter} bin/behave -f progress3 --stop --tags='~@xfail' features/
|
${python.interpreter} bin/behave -f progress3 --stop --tags='~@xfail' features/
|
||||||
${python.interpreter} bin/behave -f progress3 --stop --tags='~@xfail' tools/test-features/
|
${python.interpreter} bin/behave -f progress3 --stop --tags='~@xfail' tools/test-features/
|
||||||
|
@ -47,6 +41,6 @@ buildPythonApplication rec {
|
||||||
homepage = "https://github.com/behave/behave";
|
homepage = "https://github.com/behave/behave";
|
||||||
description = "behaviour-driven development, Python style";
|
description = "behaviour-driven development, Python style";
|
||||||
license = licenses.bsd2;
|
license = licenses.bsd2;
|
||||||
maintainers = with maintainers; [ alunduil ];
|
maintainers = with maintainers; [ alunduil maxxk ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue