6cde10ba6b
Diff: https://github.com/pytest-dev/pytest-bdd/compare/refs/tags/6.1.1...7.1.2 Changelog: https://github.com/pytest-dev/pytest-bdd/blob/7.1.2/CHANGES.rst
64 lines
1.1 KiB
Nix
64 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";
|
|
};
|
|
}
|