From 485644162524d2b6e0c93bc774ce1750d342a6d6 Mon Sep 17 00:00:00 2001 From: Sizhe Zhao Date: Sat, 30 Aug 2025 09:39:39 +0800 Subject: [PATCH 1/2] python3Packages.essentials: fix build --- .../python-modules/essentials/default.nix | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/essentials/default.nix b/pkgs/development/python-modules/essentials/default.nix index 9854a018afae..8e56431ef390 100644 --- a/pkgs/development/python-modules/essentials/default.nix +++ b/pkgs/development/python-modules/essentials/default.nix @@ -1,7 +1,9 @@ { buildPythonPackage, fetchFromGitHub, - setuptools, + hatchling, + pydantic, + pytest-asyncio, pytestCheckHook, stdenv, lib, @@ -18,9 +20,13 @@ buildPythonPackage rec { hash = "sha256-wOZ0y6sAPEy2MgcwmM9SjnULe6oWlVuNeC7Zl070CK4="; }; - nativeBuildInputs = [ setuptools ]; + build-system = [ hatchling ]; - nativeCheckInputs = [ pytestCheckHook ]; + nativeCheckInputs = [ + pydantic + pytest-asyncio + pytestCheckHook + ]; disabledTests = lib.optionals stdenv.hostPlatform.isDarwin [ # time.sleep(0.01) can be up to 0.05s on darwin From b474b7cb3e2488705f8d82e96966bd7c42219a1c Mon Sep 17 00:00:00 2001 From: Sizhe Zhao Date: Sat, 30 Aug 2025 09:47:44 +0800 Subject: [PATCH 2/2] python3Packages.essentials: avoid with lib; --- pkgs/development/python-modules/essentials/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/essentials/default.nix b/pkgs/development/python-modules/essentials/default.nix index 8e56431ef390..77a7fae225da 100644 --- a/pkgs/development/python-modules/essentials/default.nix +++ b/pkgs/development/python-modules/essentials/default.nix @@ -36,12 +36,12 @@ buildPythonPackage rec { pythonImportsCheck = [ "essentials" ]; - meta = with lib; { + meta = { homepage = "https://github.com/Neoteroi/essentials"; description = "General purpose classes and functions"; changelog = "https://github.com/Neoteroi/essentials/releases/${src.tag}"; - license = licenses.mit; - maintainers = with maintainers; [ + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ aldoborrero zimbatm ];