python3Packages.pytest-doctestplus: 1.2.1 -> 1.3.0

This commit is contained in:
Martin Weinelt
2025-01-27 10:56:53 +01:00
parent 722858864c
commit f190d1ba70
@@ -1,8 +1,7 @@
{
lib,
buildPythonPackage,
fetchPypi,
fetchpatch2,
fetchFromGitHub,
gitMinimal,
numpy,
packaging,
@@ -15,38 +14,36 @@
buildPythonPackage rec {
pname = "pytest-doctestplus";
version = "1.2.1";
format = "pyproject";
version = "1.3.0";
pyproject = true;
disabled = pythonOlder "3.7";
disabled = pythonOlder "3.8";
src = fetchPypi {
inherit pname version;
hash = "sha256-JHKoosjOo00vZfZJlUP663SO7LWcWXhS/ZiDm0cwdnk=";
src = fetchFromGitHub {
owner = "scientific-python";
repo = "pytest-doctestplus";
tag = "v${version}";
hash = "sha256-jXT+b0aMZo8byAXNR4WcmNkMNYtwkTwsthPVXvAO2K8=";
};
patches = [
(fetchpatch2 {
name = "python313-compat.patch";
url = "https://github.com/scientific-python/pytest-doctestplus/commit/aee0be27a8e8753ac68adc035f098ccc7a9e3678.patch";
hash = "sha256-UOG664zm7rJIjm/OXNu6N6jlINNB6UDZOCSUZxy3HrQ=";
})
];
postPatch = ''
substituteInPlace pytest_doctestplus/plugin.py \
--replace-fail '"git"' '"${lib.getExe gitMinimal}"'
'';
nativeBuildInputs = [ setuptools-scm ];
build-system = [
setuptools
setuptools-scm
];
buildInputs = [ pytest ];
propagatedBuildInputs = [
dependencies = [
packaging
setuptools
];
pythonImportsCheck = [ "pytest_doctestplus" ];
nativeCheckInputs = [
numpy
pytestCheckHook