diff --git a/pkgs/development/python-modules/griffe/default.nix b/pkgs/development/python-modules/griffe/default.nix index bede5d9b0f33..f3167d44da1c 100644 --- a/pkgs/development/python-modules/griffe/default.nix +++ b/pkgs/development/python-modules/griffe/default.nix @@ -7,19 +7,20 @@ git, jsonschema, pdm-backend, + pytest-gitconfig, pytestCheckHook, }: buildPythonPackage rec { pname = "griffe"; - version = "1.14.0"; + version = "1.15.0"; pyproject = true; src = fetchFromGitHub { owner = "mkdocstrings"; repo = "griffe"; tag = version; - hash = "sha256-0koTrA1b3S1NO6w24S8eghWpYDkGEo61giRveQ7MZhM="; + hash = "sha256-AMMTAqsJfj2MltTgAxfvjUTVzi+ZFmx+J9pzhMp28Z4="; }; build-system = [ pdm-backend ]; @@ -29,6 +30,7 @@ buildPythonPackage rec { nativeCheckInputs = [ git jsonschema + pytest-gitconfig pytestCheckHook ]; diff --git a/pkgs/development/python-modules/pytest-gitconfig/default.nix b/pkgs/development/python-modules/pytest-gitconfig/default.nix new file mode 100644 index 000000000000..b1f5e4206e50 --- /dev/null +++ b/pkgs/development/python-modules/pytest-gitconfig/default.nix @@ -0,0 +1,41 @@ +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pdm-backend, + pkgs, + pytest, + pytestCheckHook, +}: + +buildPythonPackage rec { + pname = "pytest-gitconfig"; + version = "0.8.0"; + pyproject = true; + + src = fetchFromGitHub { + owner = "noirbizarre"; + repo = "pytest-gitconfig"; + tag = version; + hash = "sha256-5DfG74mEvsWHH2xPyG1mNcWp9/DgpveLbaSEOoRzD+g="; + }; + + build-system = [ pdm-backend ]; + + buildInput = [ pytest ]; + + nativeCheckInputs = [ + pkgs.gitMinimal + pytestCheckHook + ]; + + pythonImportsCheck = [ "pytest_gitconfig" ]; + + meta = { + description = "Pytest gitconfig sandbox"; + homepage = "https://github.com/noirbizarre/pytest-gitconfig"; + changelog = "https://github.com/noirbizarre/pytest-gitconfig/blob/${src.rev}/CHANGELOG.md"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 745c1d6ae6d4..c329b9451f48 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -14691,6 +14691,8 @@ self: super: with self; { pytest-freezer = callPackage ../development/python-modules/pytest-freezer { }; + pytest-gitconfig = callPackage ../development/python-modules/pytest-gitconfig { }; + pytest-golden = callPackage ../development/python-modules/pytest-golden { }; pytest-grpc = callPackage ../development/python-modules/pytest-grpc { };