2021-02-05 17:12:51 +00:00
|
|
|
{ lib, buildPythonPackage, fetchFromGitHub
|
2020-04-24 23:36:52 +00:00
|
|
|
, execnet
|
|
|
|
, glob2
|
|
|
|
, Mako
|
|
|
|
, mock
|
|
|
|
, parse
|
|
|
|
, parse-type
|
|
|
|
, py
|
|
|
|
, pytest
|
|
|
|
, six
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pytest-bdd";
|
2020-10-16 20:44:37 +00:00
|
|
|
version = "4.0.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
# tests are not included in pypi tarball
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pytest-dev";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2020-10-16 20:44:37 +00:00
|
|
|
sha256 = "1yqzz44as4pxffmg4hk9lijvnvlc2chg1maq1fbj5i4k4jpagvjz";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-04-05 15:23:46 +00:00
|
|
|
buildInputs = [ pytest ];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ glob2 Mako parse parse-type py six ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
# Tests require extra dependencies
|
|
|
|
checkInputs = [ execnet mock pytest ];
|
|
|
|
checkPhase = ''
|
2020-10-16 20:44:37 +00:00
|
|
|
PATH=$PATH:$out/bin pytest
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
2020-09-25 04:45:31 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "BDD library for the py.test runner";
|
|
|
|
homepage = "https://github.com/pytest-dev/pytest-bdd";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ jm2dev ];
|
|
|
|
};
|
|
|
|
}
|