python3Packages.pytest-describe: modernize, pin to pytest7

Changed files
+16 -8
pkgs
development
python-modules
pytest-describe
+16 -8
pkgs/development/python-modules/pytest-describe/default.nix
···
{
lib,
buildPythonPackage,
-
fetchPypi,
-
# build
pytest,
# tests
-
pytestCheckHook,
}:
let
···
in
buildPythonPackage {
inherit pname version;
-
format = "setuptools";
-
src = fetchPypi {
-
inherit pname version;
-
hash = "sha256-ObsF65DySX2co0Lvmgt/pbraflhQWuwz9m1mHWMZVbc=";
};
buildInputs = [ pytest ];
-
nativeCheckInputs = [ pytestCheckHook ];
meta = with lib; {
description = "Describe-style plugin for the pytest framework";
···
{
lib,
buildPythonPackage,
+
fetchFromGitHub,
+
# build-system
+
setuptools,
+
+
# dependencies
pytest,
# tests
+
pytest7CheckHook,
}:
let
···
in
buildPythonPackage {
inherit pname version;
+
pyproject = true;
+
src = fetchFromGitHub {
+
owner = "pytest-dev";
+
repo = "pytest-describe";
+
tag = version;
+
hash = "sha256-ih0XkYOtB+gwUsgo1oSti2460P3gq3tR+UsyRlzMjLE=";
};
+
+
build-system = [ setuptools ];
buildInputs = [ pytest ];
+
# test_fixture breaks with pytest 8.4
+
nativeCheckInputs = [ pytest7CheckHook ];
meta = with lib; {
description = "Describe-style plugin for the pytest framework";