Skip to content

Commit

Permalink
python313Packages.pytest-doctestplus: 1.2.1 -> 1.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
fabaff committed Jan 13, 2025
1 parent 0a85603 commit e4457c0
Showing 1 changed file with 10 additions and 17 deletions.
27 changes: 10 additions & 17 deletions pkgs/development/python-modules/pytest-doctestplus/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
lib,
buildPythonPackage,
fetchPypi,
fetchpatch2,
gitMinimal,
numpy,
packaging,
Expand All @@ -15,34 +14,27 @@

buildPythonPackage rec {
pname = "pytest-doctestplus";
version = "1.2.1";
format = "pyproject";
version = "1.3.0";
pyproject = true;

disabled = pythonOlder "3.7";
disabled = pythonOlder "3.9";

src = fetchPypi {
inherit pname version;
hash = "sha256-JHKoosjOo00vZfZJlUP663SO7LWcWXhS/ZiDm0cwdnk=";
pname = "pytest_doctestplus";
inherit version;
hash = "sha256-cJrSPqmNqag1rOCkNlyFNxw3bgAPKGDzDebfOm8Acoo=";
};

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-scm ];

buildInputs = [ pytest ];

propagatedBuildInputs = [
dependencies = [
packaging
setuptools
];
Expand All @@ -65,7 +57,8 @@ buildPythonPackage rec {

meta = with lib; {
description = "Pytest plugin with advanced doctest features";
homepage = "https://astropy.org";
homepage = "https://github.com/scientific-python/pytest-doctestplus";
changelog = "https://github.com/scientific-python/pytest-doctestplus/releases/tag/v${version}";
license = licenses.bsd3;
maintainers = [ ];
};
Expand Down

0 comments on commit e4457c0

Please sign in to comment.