c6ca5b8f13
GitOrigin-RevId: e4d49de45a3b5dbcb881656b4e3986e666141ea9
62 lines
953 B
Nix
62 lines
953 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, execnet
|
|
, glob2
|
|
, Mako
|
|
, mock
|
|
, parse
|
|
, parse-type
|
|
, py
|
|
, pytest
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pytest-bdd";
|
|
version = "6.0.0";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "pytest-dev";
|
|
repo = pname;
|
|
rev = "refs/tags/${version}";
|
|
sha256 = "sha256-1dyAhvEw8gUe78qDpgrcwl6grWKiwPgSe/QeFAjBzZg=";
|
|
};
|
|
|
|
buildInputs = [
|
|
pytest
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
glob2
|
|
Mako
|
|
parse
|
|
parse-type
|
|
py
|
|
];
|
|
|
|
checkInputs = [
|
|
pytestCheckHook
|
|
execnet
|
|
mock
|
|
];
|
|
|
|
preCheck = ''
|
|
export PATH=$PATH:$out/bin
|
|
'';
|
|
|
|
pythonImportsCheck = [
|
|
"pytest_bdd"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "BDD library for the pytest";
|
|
homepage = "https://github.com/pytest-dev/pytest-bdd";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ jm2dev ];
|
|
};
|
|
}
|