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";