lol

python3Packages.pytest-bdd: 4.0.1 -> 4.0.2

authored by

Robert T. McGibbon and committed by
Jonathan Ringer
ac5ef3c5 b590df0f

+16 -7
+16 -7
pkgs/development/python-modules/pytest-bdd/default.nix
··· 1 - { lib, buildPythonPackage, fetchFromGitHub 1 + { lib, buildPythonPackage, fetchFromGitHub, fetchpatch 2 2 , execnet 3 3 , glob2 4 4 , Mako ··· 7 7 , parse-type 8 8 , py 9 9 , pytest 10 + , pytestCheckHook 10 11 , six 11 12 }: 12 13 13 14 buildPythonPackage rec { 14 15 pname = "pytest-bdd"; 15 - version = "4.0.1"; 16 + version = "4.0.2"; 16 17 17 18 # tests are not included in pypi tarball 18 19 src = fetchFromGitHub { 19 20 owner = "pytest-dev"; 20 21 repo = pname; 21 22 rev = version; 22 - sha256 = "1yqzz44as4pxffmg4hk9lijvnvlc2chg1maq1fbj5i4k4jpagvjz"; 23 + sha256 = "0pxx4c8lm68rw0jshbr09fnadg8zz8j73q0qi49yw9s7yw86bg5l"; 23 24 }; 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 + 25 35 buildInputs = [ pytest ]; 26 36 27 37 propagatedBuildInputs = [ glob2 Mako parse parse-type py six ]; 28 38 29 - # Tests require extra dependencies 30 - checkInputs = [ execnet mock pytest ]; 31 - checkPhase = '' 32 - PATH=$PATH:$out/bin pytest 39 + checkInputs = [ pytestCheckHook execnet mock ]; 40 + preCheck = '' 41 + export PATH=$PATH:$out/bin 33 42 ''; 34 43 35 44 meta = with lib; {