]> git.scottworley.com Git - nix-pin-deps/commitdiff
25.11: Formatting: nixfmt-classic → nixfmt-rfc-style
authorScott Worley <scottworley@scottworley.com>
Sat, 9 May 2026 07:58:12 +0000 (00:58 -0700)
committerScott Worley <scottworley@scottworley.com>
Sat, 9 May 2026 07:58:12 +0000 (00:58 -0700)
default.nix

index 4e6e96b183b302c6f6d952a1c741f4910665b7a7..260488c530a75f2ee3401f2d1265005ccfaa77a5 100644 (file)
@@ -1,13 +1,29 @@
-{ pkgs ? import <nixpkgs> { }, lint ? false }:
-pkgs.python3Packages.callPackage
-({ lib, buildPythonPackage, setuptools, autopep8, mypy, pylint, }:
+{
+  pkgs ? import <nixpkgs> { },
+  lint ? false,
+}:
+pkgs.python3Packages.callPackage (
+  {
+    lib,
+    buildPythonPackage,
+    setuptools,
+    autopep8,
+    mypy,
+    pylint,
+  }:
   buildPythonPackage rec {
     pname = "nix-pin-deps";
     version = "1.1.0";
     src = lib.cleanSource ./.;
     pyproject = true;
     build-system = [ setuptools ];
   buildPythonPackage rec {
     pname = "nix-pin-deps";
     version = "1.1.0";
     src = lib.cleanSource ./.;
     pyproject = true;
     build-system = [ setuptools ];
-    nativeCheckInputs = [ mypy ] ++ lib.optionals lint [ autopep8 pylint ];
+    nativeCheckInputs = [
+      mypy
+    ]
+    ++ lib.optionals lint [
+      autopep8
+      pylint
+    ];
     doCheck = true;
     checkPhase = ''
       ./test.sh ${lib.optionalString lint "lint"}
     doCheck = true;
     checkPhase = ''
       ./test.sh ${lib.optionalString lint "lint"}
@@ -18,4 +34,5 @@ pkgs.python3Packages.callPackage
       license = pkgs.lib.licenses.gpl3;
       maintainers = with pkgs.lib.maintainers; [ chkno ];
     };
       license = pkgs.lib.licenses.gpl3;
       maintainers = with pkgs.lib.maintainers; [ chkno ];
     };
-  }) { }
+  }
+) { }