Commit ac5ef3c5 authored by Robert T. McGibbon's avatar Robert T. McGibbon Committed by Jonathan Ringer
Browse files

python3Packages.pytest-bdd: 4.0.1 -> 4.0.2

parent b590df0f
Loading
Loading
Loading
Loading
+16 −7
Original line number Diff line number Diff line
{ lib, buildPythonPackage, fetchFromGitHub
{ lib, buildPythonPackage, fetchFromGitHub, fetchpatch
, execnet
, glob2
, Mako
@@ -7,29 +7,38 @@
, parse-type
, py
, pytest
, pytestCheckHook
, six
}:

buildPythonPackage rec {
  pname = "pytest-bdd";
  version = "4.0.1";
  version = "4.0.2";

  # tests are not included in pypi tarball
  src = fetchFromGitHub {
    owner = "pytest-dev";
    repo = pname;
    rev = version;
    sha256 = "1yqzz44as4pxffmg4hk9lijvnvlc2chg1maq1fbj5i4k4jpagvjz";
    sha256 = "0pxx4c8lm68rw0jshbr09fnadg8zz8j73q0qi49yw9s7yw86bg5l";
  };

  patches = [
    # Fixed compatibility with pytest > 6.1
    (fetchpatch {
      url = "https://github.com/pytest-dev/pytest-bdd/commit/e1dc0cad9a1c1ba563ccfbc24f9993d83ac59293.patch";
      sha256 = "1p3gavh6nir2a8crd5wdf0prfrg0hmgar9slvn8a21ils3k5pm5y";
    })
  ];


  buildInputs = [ pytest ];

  propagatedBuildInputs = [ glob2 Mako parse parse-type py six ];

  # Tests require extra dependencies
  checkInputs = [ execnet mock pytest ];
  checkPhase = ''
    PATH=$PATH:$out/bin pytest
  checkInputs = [ pytestCheckHook execnet mock ];
  preCheck = ''
    export PATH=$PATH:$out/bin
  '';

  meta = with lib; {