diff --git a/pkgs/development/python-modules/chat-downloader/default.nix b/pkgs/development/python-modules/chat-downloader/default.nix index 00e853a5a20d..10e08d167a4b 100644 --- a/pkgs/development/python-modules/chat-downloader/default.nix +++ b/pkgs/development/python-modules/chat-downloader/default.nix @@ -2,6 +2,7 @@ lib, buildPythonPackage, fetchPypi, + setuptools, requests, isodate, docstring-parser, @@ -10,17 +11,21 @@ pytestCheckHook, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "chat-downloader"; version = "0.2.8"; - format = "setuptools"; + pyproject = true; + + __structuredAttrs = true; src = fetchPypi { - inherit version pname; + inherit (finalAttrs) version pname; hash = "sha256-WBasBhefgRkOdMdz2K/agvS+cY6m3/33wiu+Jl4d1Cg="; }; - propagatedBuildInputs = [ + build-system = [ setuptools ]; + + dependencies = [ requests isodate docstring-parser @@ -39,8 +44,8 @@ buildPythonPackage rec { description = "Simple tool used to retrieve chat messages from livestreams, videos, clips and past broadcasts"; mainProgram = "chat_downloader"; homepage = "https://github.com/xenova/chat-downloader"; - changelog = "https://github.com/xenova/chat-downloader/releases/tag/v${version}"; + changelog = "https://github.com/xenova/chat-downloader/releases/tag/v${finalAttrs.version}"; license = lib.licenses.mit; maintainers = [ ]; }; -} +})