Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ stdenv, buildPythonPackage, fetchFromGitHub 2, execnet 3, glob2 4, Mako 5, mock 6, parse 7, parse-type 8, py 9, pytest 10, six 11}: 12 13buildPythonPackage rec { 14 pname = "pytest-bdd"; 15 version = "4.0.1"; 16 17 # tests are not included in pypi tarball 18 src = fetchFromGitHub { 19 owner = "pytest-dev"; 20 repo = pname; 21 rev = version; 22 sha256 = "1yqzz44as4pxffmg4hk9lijvnvlc2chg1maq1fbj5i4k4jpagvjz"; 23 }; 24 25 propagatedBuildInputs = [ glob2 Mako parse parse-type py pytest six ]; 26 27 # Tests require extra dependencies 28 checkInputs = [ execnet mock pytest ]; 29 checkPhase = '' 30 PATH=$PATH:$out/bin pytest 31 ''; 32 33 meta = with stdenv.lib; { 34 description = "BDD library for the py.test runner"; 35 homepage = "https://github.com/pytest-dev/pytest-bdd"; 36 license = licenses.mit; 37 maintainers = with maintainers; [ jm2dev ]; 38 }; 39}