Skip to content

Commit fa1d81b

Browse files
authored
nbqa: 1.9.0 -> 1.9.1 (#355013)
2 parents 10ebb62 + 7bb56ad commit fa1d81b

File tree

1 file changed

+14
-9
lines changed

1 file changed

+14
-9
lines changed

pkgs/by-name/nb/nbqa/package.nix

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,36 @@
11
{
22
lib,
3-
python3,
3+
python3Packages,
44
fetchFromGitHub,
55

66
# optional-dependencies
77
ruff,
88

99
# tests
1010
versionCheckHook,
11+
12+
nix-update-script,
1113
}:
1214

1315
let
14-
nbqa = python3.pkgs.buildPythonApplication rec {
16+
nbqa = python3Packages.buildPythonApplication rec {
1517
pname = "nbqa";
16-
version = "1.9.0";
18+
version = "1.9.1";
1719
pyproject = true;
1820

1921
src = fetchFromGitHub {
2022
owner = "nbQA-dev";
2123
repo = "nbQA";
2224
rev = "refs/tags/${version}";
23-
hash = "sha256-9s+q2unh+jezU0Er7ZH0tvgntmPFts9OmsgAMeQXRrY=";
25+
hash = "sha256-qVNJ8f8vUlTCi5DbvG70orcSnulH60UcI5iABtXYUog=";
2426
};
2527

26-
build-system = with python3.pkgs; [
28+
build-system = with python3Packages; [
2729
setuptools
2830
];
2931

3032
optional-dependencies.toolchain =
31-
(with python3.pkgs; [
33+
(with python3Packages; [
3234
black
3335
blacken-docs
3436
flake8
@@ -42,7 +44,7 @@ let
4244
ruff
4345
];
4446

45-
dependencies = with python3.pkgs; [
47+
dependencies = with python3Packages; [
4648
autopep8
4749
ipython
4850
tokenize-rt
@@ -60,7 +62,7 @@ let
6062
'';
6163

6264
nativeCheckInputs =
63-
(with python3.pkgs; [
65+
(with python3Packages; [
6466
autoflake
6567
distutils
6668
mdformat
@@ -71,6 +73,7 @@ let
7173
])
7274
++ lib.flatten (lib.attrValues optional-dependencies)
7375
++ [ versionCheckHook ];
76+
versionCheckProgramArg = [ "--version" ];
7477

7578
disabledTests = [
7679
# Test data not found
@@ -98,10 +101,12 @@ let
98101
nbqa.overridePythonAttrs (
99102
{ dependencies, ... }:
100103
{
101-
dependencies = dependencies ++ selector python3.pkgs;
104+
dependencies = dependencies ++ selector python3Packages;
102105
doCheck = false;
103106
}
104107
);
108+
109+
updateScript = nix-update-script { };
105110
};
106111

107112
meta = {

0 commit comments

Comments
 (0)