From 7bb56ad6acf9b590ff3f58c697ef3d287b91cc0c Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Sun, 10 Nov 2024 17:34:08 +0100 Subject: [PATCH] nbqa: 1.9.0 -> 1.9.1 Diff: https://github.com/nbQA-dev/nbQA/compare/refs/tags/1.9.0...1.9.1 Changelog: https://nbqa.readthedocs.io/en/latest/history.html --- pkgs/by-name/nb/nbqa/package.nix | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/pkgs/by-name/nb/nbqa/package.nix b/pkgs/by-name/nb/nbqa/package.nix index 07fdcdde271a..e171b4b57556 100644 --- a/pkgs/by-name/nb/nbqa/package.nix +++ b/pkgs/by-name/nb/nbqa/package.nix @@ -1,6 +1,6 @@ { lib, - python3, + python3Packages, fetchFromGitHub, # optional-dependencies @@ -8,27 +8,29 @@ # tests versionCheckHook, + + nix-update-script, }: let - nbqa = python3.pkgs.buildPythonApplication rec { + nbqa = python3Packages.buildPythonApplication rec { pname = "nbqa"; - version = "1.9.0"; + version = "1.9.1"; pyproject = true; src = fetchFromGitHub { owner = "nbQA-dev"; repo = "nbQA"; rev = "refs/tags/${version}"; - hash = "sha256-9s+q2unh+jezU0Er7ZH0tvgntmPFts9OmsgAMeQXRrY="; + hash = "sha256-qVNJ8f8vUlTCi5DbvG70orcSnulH60UcI5iABtXYUog="; }; - build-system = with python3.pkgs; [ + build-system = with python3Packages; [ setuptools ]; optional-dependencies.toolchain = - (with python3.pkgs; [ + (with python3Packages; [ black blacken-docs flake8 @@ -42,7 +44,7 @@ let ruff ]; - dependencies = with python3.pkgs; [ + dependencies = with python3Packages; [ autopep8 ipython tokenize-rt @@ -60,7 +62,7 @@ let ''; nativeCheckInputs = - (with python3.pkgs; [ + (with python3Packages; [ autoflake distutils mdformat @@ -71,6 +73,7 @@ let ]) ++ lib.flatten (lib.attrValues optional-dependencies) ++ [ versionCheckHook ]; + versionCheckProgramArg = [ "--version" ]; disabledTests = [ # Test data not found @@ -98,10 +101,12 @@ let nbqa.overridePythonAttrs ( { dependencies, ... }: { - dependencies = dependencies ++ selector python3.pkgs; + dependencies = dependencies ++ selector python3Packages; doCheck = false; } ); + + updateScript = nix-update-script { }; }; meta = {