From a2e9ba30c8ab98756d0fb3ffb24a864d638471a3 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Tue, 16 Apr 2024 05:01:38 +0000 Subject: [PATCH 1/3] python312Packages.griffe: 0.42.1 -> 0.42.2 --- pkgs/development/python-modules/griffe/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/griffe/default.nix b/pkgs/development/python-modules/griffe/default.nix index 0ae203f6331f..ec6d40dfa9bc 100644 --- a/pkgs/development/python-modules/griffe/default.nix +++ b/pkgs/development/python-modules/griffe/default.nix @@ -12,7 +12,7 @@ buildPythonPackage rec { pname = "griffe"; - version = "0.42.1"; + version = "0.42.2"; pyproject = true; disabled = pythonOlder "3.8"; @@ -21,7 +21,7 @@ buildPythonPackage rec { owner = "mkdocstrings"; repo = "griffe"; rev = "refs/tags/${version}"; - hash = "sha256-KaD3j96FJJx43m/nfHa4kAft4FcDOdq+2dsiaMY7PPY="; + hash = "sha256-W6aOhz8UxJUc2kNRc4JaCqFgIOXsY8ctyQ3xZ+YaD9k="; }; nativeBuildInputs = [ From e5af57fcb1a1441dc907395d56197db31f52fdbd Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 16 Apr 2024 09:06:54 +0200 Subject: [PATCH 2/3] python312Packages.griffe: refactor --- pkgs/development/python-modules/griffe/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/griffe/default.nix b/pkgs/development/python-modules/griffe/default.nix index ec6d40dfa9bc..8b6651137119 100644 --- a/pkgs/development/python-modules/griffe/default.nix +++ b/pkgs/development/python-modules/griffe/default.nix @@ -24,11 +24,11 @@ buildPythonPackage rec { hash = "sha256-W6aOhz8UxJUc2kNRc4JaCqFgIOXsY8ctyQ3xZ+YaD9k="; }; - nativeBuildInputs = [ + build-system = [ pdm-backend ]; - propagatedBuildInputs = [ + dependencies = [ colorama ]; @@ -50,10 +50,10 @@ buildPythonPackage rec { meta = with lib; { description = "Signatures for entire Python programs"; - mainProgram = "griffe"; homepage = "https://github.com/mkdocstrings/griffe"; changelog = "https://github.com/mkdocstrings/griffe/blob/${version}/CHANGELOG.md"; license = licenses.isc; maintainers = with maintainers; [ fab ]; + mainProgram = "griffe"; }; } From 46b289ab1e4a2be02cc97b39a09e878c5e468333 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 16 Apr 2024 09:07:13 +0200 Subject: [PATCH 3/3] python312Packages.griffe: format with nixfmt --- .../python-modules/griffe/default.nix | 37 ++++++++----------- 1 file changed, 15 insertions(+), 22 deletions(-) diff --git a/pkgs/development/python-modules/griffe/default.nix b/pkgs/development/python-modules/griffe/default.nix index 8b6651137119..8f6acc289d6a 100644 --- a/pkgs/development/python-modules/griffe/default.nix +++ b/pkgs/development/python-modules/griffe/default.nix @@ -1,13 +1,14 @@ -{ lib -, aiofiles -, buildPythonPackage -, colorama -, fetchFromGitHub -, git -, jsonschema -, pdm-backend -, pytestCheckHook -, pythonOlder +{ + lib, + aiofiles, + buildPythonPackage, + colorama, + fetchFromGitHub, + git, + jsonschema, + pdm-backend, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -24,13 +25,9 @@ buildPythonPackage rec { hash = "sha256-W6aOhz8UxJUc2kNRc4JaCqFgIOXsY8ctyQ3xZ+YaD9k="; }; - build-system = [ - pdm-backend - ]; + build-system = [ pdm-backend ]; - dependencies = [ - colorama - ]; + dependencies = [ colorama ]; nativeCheckInputs = [ git @@ -39,14 +36,10 @@ buildPythonPackage rec { ]; passthru.optional-dependencies = { - async = [ - aiofiles - ]; + async = [ aiofiles ]; }; - pythonImportsCheck = [ - "griffe" - ]; + pythonImportsCheck = [ "griffe" ]; meta = with lib; { description = "Signatures for entire Python programs";