Unverified Commit fa1d81bd authored by Pol Dellaiera's avatar Pol Dellaiera Committed by GitHub
Browse files

nbqa: 1.9.0 -> 1.9.1 (#355013)

parents 10ebb62a 7bb56ad6
Loading
Loading
Loading
Loading
+14 −9
Original line number Diff line number Diff line
{
  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 = {