diff options
author | Alex Brandt <alunduil@alunduil.com> | 2017-08-27 22:09:23 -0500 |
---|---|---|
committer | Frederik Rietdijk <fridh@fridh.nl> | 2017-09-07 09:28:03 +0200 |
commit | 637ccde4354e5991106a6e35c9c6c451bda27be4 (patch) | |
tree | d90af0aed9e12916892b2636bec00454734abc30 /pkgs/development | |
parent | 83dbb41aed4033318eb83f3897a22816a6943a14 (diff) | |
download | nixlib-637ccde4354e5991106a6e35c9c6c451bda27be4.tar nixlib-637ccde4354e5991106a6e35c9c6c451bda27be4.tar.gz nixlib-637ccde4354e5991106a6e35c9c6c451bda27be4.tar.bz2 nixlib-637ccde4354e5991106a6e35c9c6c451bda27be4.tar.lz nixlib-637ccde4354e5991106a6e35c9c6c451bda27be4.tar.xz nixlib-637ccde4354e5991106a6e35c9c6c451bda27be4.tar.zst nixlib-637ccde4354e5991106a6e35c9c6c451bda27be4.zip |
python.pkgs.behave: init at 1.2.5
Diffstat (limited to 'pkgs/development')
-rw-r--r-- | pkgs/development/python-modules/behave/default.nix | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/behave/default.nix b/pkgs/development/python-modules/behave/default.nix new file mode 100644 index 000000000000..80acc58f6544 --- /dev/null +++ b/pkgs/development/python-modules/behave/default.nix @@ -0,0 +1,45 @@ +{ stdenv, fetchPypi +, buildPythonApplication, python, pythonAtLeast +, mock, nose, pyhamcrest +, glibcLocales, parse, parse-type, six +}: +buildPythonApplication rec { + pname = "behave"; + version = "1.2.5"; + name = "${pname}-${version}"; + + disabled = pythonAtLeast "3.6"; + + src = fetchPypi { + inherit pname version; + sha256 = "81b731ac5187e31e4aad2594944fa914943683a9818320846d037c5ebd6d5d0b"; + }; + + checkInputs = [ mock nose pyhamcrest ]; + buildInputs = [ glibcLocales ]; + propagatedBuildInputs = [ parse parse-type six ]; + + postPatch = '' + patchShebangs bin + ''; + + doCheck = true; + + checkPhase = '' + export LANG="en_US.UTF-8" + export LC_ALL="en_US.UTF-8" + + nosetests -x + + ${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' issue.features/ + ''; + + meta = with stdenv.lib; { + homepage = https://github.com/behave/behave; + description = "behaviour-driven development, Python style"; + license = licenses.bsd2; + maintainers = with maintainers; [ alunduil ]; + }; +} |