python3Packages.pytest-bdd: 4.0.1 -> 4.0.2
This commit is contained in:
parent
b590df0f18
commit
ac5ef3c55f
@ -1,4 +1,4 @@
|
|||||||
{ lib, buildPythonPackage, fetchFromGitHub
|
{ lib, buildPythonPackage, fetchFromGitHub, fetchpatch
|
||||||
, execnet
|
, execnet
|
||||||
, glob2
|
, glob2
|
||||||
, Mako
|
, Mako
|
||||||
@ -7,29 +7,38 @@
|
|||||||
, parse-type
|
, parse-type
|
||||||
, py
|
, py
|
||||||
, pytest
|
, pytest
|
||||||
|
, pytestCheckHook
|
||||||
, six
|
, six
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "pytest-bdd";
|
pname = "pytest-bdd";
|
||||||
version = "4.0.1";
|
version = "4.0.2";
|
||||||
|
|
||||||
# tests are not included in pypi tarball
|
# tests are not included in pypi tarball
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "pytest-dev";
|
owner = "pytest-dev";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = version;
|
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 ];
|
buildInputs = [ pytest ];
|
||||||
|
|
||||||
propagatedBuildInputs = [ glob2 Mako parse parse-type py six ];
|
propagatedBuildInputs = [ glob2 Mako parse parse-type py six ];
|
||||||
|
|
||||||
# Tests require extra dependencies
|
checkInputs = [ pytestCheckHook execnet mock ];
|
||||||
checkInputs = [ execnet mock pytest ];
|
preCheck = ''
|
||||||
checkPhase = ''
|
export PATH=$PATH:$out/bin
|
||||||
PATH=$PATH:$out/bin pytest
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
Loading…
Reference in New Issue
Block a user