]> git.scottworley.com Git - rfc1751/blobdiff - default.nix
nixpkgs 25.11 pyproject boilerplate
[rfc1751] / default.nix
index f1052a20e684741d92d65ab33cc83dfa3bb5fe40..87d0ca35a456b0b809f2b60fbcd88ed78834521c 100644 (file)
@@ -1,18 +1,36 @@
-{ pkgs ? import <nixpkgs> { }, lint ? false }:
-pkgs.python3Packages.callPackage
-({ lib, buildPythonPackage, mypy, autopep8, pylint, }:
+{
+  pkgs ? import <nixpkgs> { },
+  lint ? false,
+}:
+pkgs.python3Packages.callPackage (
+  {
+    lib,
+    buildPythonPackage,
+    mypy,
+    autopep8,
+    pylint,
+    setuptools,
+  }:
   buildPythonPackage rec {
     pname = "rfc1751";
     version = "1.0.0";
     src = lib.cleanSource ./.;
-    nativeCheckInputs = [ mypy ] ++ lib.optionals lint [ autopep8 pylint ];
+    pyproject = true;
+    build-system = [ setuptools ];
+    nativeCheckInputs = [
+      mypy
+    ]
+    ++ lib.optionals lint [
+      autopep8
+      pylint
+    ];
     doCheck = true;
     checkPhase = "./test.sh";
     meta = {
-      description =
-        "Command line tool for RFC1751 (aka S/Key) numbers-as-word-lists";
+      description = "Command line tool for RFC1751 (aka S/Key) numbers-as-word-lists";
       homepage = "https://git.scottworley.com/rfc1751";
       license = lib.licenses.isc;
       maintainers = with lib.maintainers; [ chkno ];
     };
-  }) { }
+  }
+) { }