python3Packages.pytest-describe: modernize, pin to pytest7
This commit is contained in:
@@ -1,13 +1,16 @@
|
||||
{
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
fetchPypi,
|
||||
fetchFromGitHub,
|
||||
|
||||
# build
|
||||
# build-system
|
||||
setuptools,
|
||||
|
||||
# dependencies
|
||||
pytest,
|
||||
|
||||
# tests
|
||||
pytestCheckHook,
|
||||
pytest7CheckHook,
|
||||
}:
|
||||
|
||||
let
|
||||
@@ -16,16 +19,21 @@ let
|
||||
in
|
||||
buildPythonPackage {
|
||||
inherit pname version;
|
||||
format = "setuptools";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
hash = "sha256-ObsF65DySX2co0Lvmgt/pbraflhQWuwz9m1mHWMZVbc=";
|
||||
src = fetchFromGitHub {
|
||||
owner = "pytest-dev";
|
||||
repo = "pytest-describe";
|
||||
tag = version;
|
||||
hash = "sha256-ih0XkYOtB+gwUsgo1oSti2460P3gq3tR+UsyRlzMjLE=";
|
||||
};
|
||||
|
||||
build-system = [ setuptools ];
|
||||
|
||||
buildInputs = [ pytest ];
|
||||
|
||||
nativeCheckInputs = [ pytestCheckHook ];
|
||||
# test_fixture breaks with pytest 8.4
|
||||
nativeCheckInputs = [ pytest7CheckHook ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Describe-style plugin for the pytest framework";
|
||||
|
||||
Reference in New Issue
Block a user