]> git.scottworley.com Git - nix-env-apps/blobdiff - default.nix
Release 1.1.0
[nix-env-apps] / default.nix
index e30926737602943436110db6a7ec90d1f0a59db0..ebcfcc0e1589bff89f9640dad7d40c5326122ad9 100644 (file)
@@ -1,18 +1,44 @@
-{ pkgs ? import <nixpkgs> { }, lint ? false }:
-pkgs.python3Packages.callPackage ({ autopep8, buildPythonPackage
-  , gobject-introspection, gtk4, lib, makeDesktopItem, mypy, pylint, pygobject3
-  , wrapGAppsHook4, }:
+{
+  pkgs ? import <nixpkgs> { },
+  lint ? false,
+}:
+pkgs.python3Packages.callPackage (
+  {
+    autopep8,
+    buildPythonPackage,
+    gobject-introspection,
+    gtk4,
+    lib,
+    makeDesktopItem,
+    mypy,
+    pylint,
+    pygobject3,
+    setuptools,
+    wrapGAppsHook4,
+  }:
   buildPythonPackage rec {
     pname = "apps";
-    version = "1.0.2";
+    version = "1.1.0";
 
     src = lib.cleanSource ./.;
 
+    pyproject = true;
+    build-system = [ setuptools ];
+
     doCheck = true;
     checkPhase = "./test.sh";
 
-    nativeBuildInputs = [ gobject-introspection wrapGAppsHook4 ];
-    nativeCheckInputs = [ mypy ] ++ lib.optionals lint [ autopep8 pylint ];
+    nativeBuildInputs = [
+      gobject-introspection
+      wrapGAppsHook4
+    ];
+    nativeCheckInputs = [
+      mypy
+    ]
+    ++ lib.optionals lint [
+      autopep8
+      pylint
+    ];
     buildInputs = [ gtk4 ];
     pythonPath = [ pygobject3 ];
 
@@ -31,11 +57,11 @@ pkgs.python3Packages.callPackage ({ autopep8, buildPythonPackage
     };
 
     meta = {
-      description =
-        "A simple GUI for managing declarative nix-env user environments";
+      description = "A simple GUI for managing declarative nix-env user environments";
       homepage = "https://git.scottworley.com/nix-env-apps";
       license = pkgs.lib.licenses.gpl3;
       maintainers = with pkgs.lib.maintainers; [ chkno ];
     };
 
-  }) { }
+  }
+) { }