1{ lib, buildPythonPackage, fetchFromGitHub, fetchpatch 2, execnet 3, glob2 4, Mako 5, mock 6, parse 7, parse-type 8, py 9, pytest 10, pytestCheckHook 11, six 12}: 13 14buildPythonPackage rec { 15 pname = "pytest-bdd"; 16 version = "4.0.2"; 17 18 # tests are not included in pypi tarball 19 src = fetchFromGitHub { 20 owner = "pytest-dev"; 21 repo = pname; 22 rev = version; 23 sha256 = "0pxx4c8lm68rw0jshbr09fnadg8zz8j73q0qi49yw9s7yw86bg5l"; 24 }; 25 26 patches = [ 27 # Fixed compatibility with pytest > 6.1 28 (fetchpatch { 29 url = "https://github.com/pytest-dev/pytest-bdd/commit/e1dc0cad9a1c1ba563ccfbc24f9993d83ac59293.patch"; 30 sha256 = "1p3gavh6nir2a8crd5wdf0prfrg0hmgar9slvn8a21ils3k5pm5y"; 31 }) 32 ]; 33 34 35 buildInputs = [ pytest ]; 36 37 propagatedBuildInputs = [ glob2 Mako parse parse-type py six ]; 38 39 checkInputs = [ pytestCheckHook execnet mock ]; 40 preCheck = '' 41 export PATH=$PATH:$out/bin 42 ''; 43 44 meta = with lib; { 45 description = "BDD library for the py.test runner"; 46 homepage = "https://github.com/pytest-dev/pytest-bdd"; 47 license = licenses.mit; 48 maintainers = with maintainers; [ jm2dev ]; 49 }; 50}