mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 03:17:13 +00:00
ced21f5e1a
The `buildPython*` function computes name from `pname` and `version`. This change removes `name` attribute from all expressions in `pkgs/development/python-modules`. While at it, some other minor changes were made as well, such as replacing `fetchurl` calls with `fetchPypi`.
44 lines
1.2 KiB
Nix
44 lines
1.2 KiB
Nix
{ stdenv, fetchPypi
|
|
, buildPythonApplication, isPy27, python, pythonOlder
|
|
, mock, nose, pathpy, pyhamcrest, pytest
|
|
, glibcLocales, parse, parse-type, six
|
|
, traceback2
|
|
}:
|
|
buildPythonApplication rec {
|
|
pname = "behave";
|
|
version = "1.2.6";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "11hsz365qglvpp1m1w16239c3kiw15lw7adha49lqaakm8kj6rmr";
|
|
};
|
|
|
|
checkInputs = [ mock nose pathpy pyhamcrest pytest ];
|
|
buildInputs = [ glibcLocales ];
|
|
propagatedBuildInputs = [ parse parse-type six ] ++ stdenv.lib.optional (pythonOlder "3.0") traceback2;
|
|
|
|
postPatch = ''
|
|
patchShebangs bin
|
|
'';
|
|
|
|
doCheck = true;
|
|
|
|
checkPhase = ''
|
|
export LANG="en_US.UTF-8"
|
|
export LC_ALL="en_US.UTF-8"
|
|
|
|
pytest test tests
|
|
|
|
${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 ];
|
|
};
|
|
}
|