depot/third_party/nixpkgs/pkgs/development/python-modules/pytest-bdd/default.nix
Default email 587713944a Project import generated by Copybara.
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
2024-04-21 17:54:59 +02:00

56 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
mako,
parse,
parse-type,
poetry-core,
pytest,
pytestCheckHook,
pythonOlder,
typing-extensions,
}:
buildPythonPackage rec {
pname = "pytest-bdd";
version = "7.1.2";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "pytest-dev";
repo = "pytest-bdd";
rev = "refs/tags/${version}";
hash = "sha256-PC4VSsUU5qEFp/C/7OTgHINo8wmOo0w2d1Hpe0EnFzE=";
};
build-system = [ poetry-core ];
buildInputs = [ pytest ];
dependencies = [
mako
parse
parse-type
typing-extensions
];
nativeCheckInputs = [ pytestCheckHook ];
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";
changelog = "https://github.com/pytest-dev/pytest-bdd/blob/${version}/CHANGES.rst";
license = licenses.mit;
maintainers = with maintainers; [ jm2dev ];
mainProgram = "pytest-bdd";
};
}