depot/third_party/nixpkgs/pkgs/development/python-modules/pytest-bdd/default.nix
Default email 81047829ea Project import generated by Copybara.
GitOrigin-RevId: 48d63e924a2666baf37f4f14a18f19347fbd54a2
2022-02-10 15:34:41 -05:00

62 lines
938 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, execnet
, glob2
, Mako
, mock
, parse
, parse-type
, py
, pytest
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "pytest-bdd";
version = "5.0.0";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "pytest-dev";
repo = pname;
rev = version;
sha256 = "sha256-3P9ongMAsLITOCRPmME492xnkdVc8IdOVrINK57gfOY=";
};
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 ];
};
}