Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.03 39 lines 815 B view raw
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 = "3.2.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 = "02y28l5h1m9grj54p681qvv7nrhd7ly9jkqdchyw4p0lnmcmnsrd"; 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 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}