From 6993a946ca3e5229b0baf90c6dc1eb60c7d2bbd5 Mon Sep 17 00:00:00 2001 From: Sigmanificient Date: Thu, 26 Mar 2026 11:28:29 +0100 Subject: [PATCH] python3Packages.sseclient-py: fix build --- pkgs/development/python-modules/sseclient-py/default.nix | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/sseclient-py/default.nix b/pkgs/development/python-modules/sseclient-py/default.nix index a74fc325b226..8d3b039ded28 100644 --- a/pkgs/development/python-modules/sseclient-py/default.nix +++ b/pkgs/development/python-modules/sseclient-py/default.nix @@ -2,13 +2,14 @@ lib, buildPythonPackage, fetchFromGitHub, + hatchling, pytestCheckHook, }: buildPythonPackage rec { pname = "sseclient-py"; version = "1.9.0"; - format = "setuptools"; + pyproject = true; src = fetchFromGitHub { owner = "mpetazzoni"; @@ -17,12 +18,12 @@ buildPythonPackage rec { hash = "sha256-AIldZFElGgSbw38aZWCWI1N35MiE+b9D1s/XhD7aIvo="; }; + build-system = [ hatchling ]; + nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "sseclient" ]; - enabledTestPaths = [ "tests/unittests.py" ]; - meta = { description = "Pure-Python Server Side Events (SSE) client"; homepage = "https://github.com/mpetazzoni/sseclient";