From f190d1ba705feaa65d7a9de6a9065085a7c7cbfd Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Sun, 19 Jan 2025 21:17:44 +0100 Subject: [PATCH] python3Packages.pytest-doctestplus: 1.2.1 -> 1.3.0 --- .../pytest-doctestplus/default.nix | 35 +++++++++---------- 1 file changed, 16 insertions(+), 19 deletions(-) diff --git a/pkgs/development/python-modules/pytest-doctestplus/default.nix b/pkgs/development/python-modules/pytest-doctestplus/default.nix index 911d834c26bb..f97f5d6f3b77 100644 --- a/pkgs/development/python-modules/pytest-doctestplus/default.nix +++ b/pkgs/development/python-modules/pytest-doctestplus/default.nix @@ -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