X-Git-Url: http://git.scottworley.com/nix-env-apps/blobdiff_plain/b936dc44791635917436705001b7325e161b137c..7e34a888e8d0d34ccd463719f9daf0a7c13ada8a:/default.nix diff --git a/default.nix b/default.nix index 2d58ca3..845dc8b 100644 --- a/default.nix +++ b/default.nix @@ -1,18 +1,44 @@ -{ pkgs ? import { }, lint ? false }: -pkgs.python3Packages.callPackage ({ autopep8, buildPythonPackage - , gobject-introspection, gtk4, lib, makeDesktopItem, mypy, pylint, pygobject3 - , wrapGAppsHook4, }: +{ + pkgs ? import { }, + lint ? false, +}: +pkgs.python3Packages.callPackage ( + { + autopep8, + buildPythonPackage, + gobject-introspection, + gtk4, + lib, + makeDesktopItem, + mypy, + pylint, + pygobject3, + setuptools, + wrapGAppsHook4, + }: buildPythonPackage rec { pname = "apps"; - version = "1.0.1"; + version = "1.0.2"; 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 ]; }; - }) { } + } +) { }