diff --git a/pkgs/development/python-modules/wslink/default.nix b/pkgs/development/python-modules/wslink/default.nix index ac95520aa2eb..5245d30efdda 100644 --- a/pkgs/development/python-modules/wslink/default.nix +++ b/pkgs/development/python-modules/wslink/default.nix @@ -1,33 +1,26 @@ { lib, - buildPythonPackage, - fetchFromGitHub, - setuptools, aiohttp, - msgpack, + buildPythonPackage, cryptography, + fetchFromGitHub, + hatchling, + msgpack, }: buildPythonPackage (finalAttrs: { pname = "wslink"; - version = "2.5.0"; + version = "2.5.7"; pyproject = true; src = fetchFromGitHub { owner = "kitware"; repo = "wslink"; tag = "v${finalAttrs.version}"; - hash = "sha256-g1I8qCuqfv+pA3IP7b57PZ7vCsykpfJNG97NgJ+N5lE="; + hash = "sha256-47vHc+b5Z3ipkLZ5k0yEasNaKz0Seu2jiGBVmAI5u6U="; }; - sourceRoot = "${finalAttrs.src.name}/python"; - - # add missing version string to dist-info - postPatch = '' - sed -i "/name *= */a\ version='${finalAttrs.version}'," setup.py - ''; - - build-system = [ setuptools ]; + build-system = [ hatchling ]; dependencies = [ aiohttp @@ -46,7 +39,7 @@ buildPythonPackage (finalAttrs: { meta = { description = "Python/JavaScript library for communicating over WebSocket"; homepage = "https://github.com/Kitware/wslink"; - changelog = "https://github.com/Kitware/wslink/releases/tag/v${finalAttrs.version}"; + changelog = "https://github.com/Kitware/wslink/releases/tag/${finalAttrs.src.tag}"; license = lib.licenses.bsd3; maintainers = with lib.maintainers; [ qbisi ]; };