Skip to content

Commit ab86c6e

Browse files
authored
python3Packages.chat-downloader: migrate to pyproject (#529046)
2 parents 408f5b0 + 9896e71 commit ab86c6e

1 file changed

Lines changed: 11 additions & 6 deletions

File tree

  • pkgs/development/python-modules/chat-downloader

pkgs/development/python-modules/chat-downloader/default.nix

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
lib,
33
buildPythonPackage,
44
fetchPypi,
5+
setuptools,
56
requests,
67
isodate,
78
docstring-parser,
@@ -10,17 +11,21 @@
1011
pytestCheckHook,
1112
}:
1213

13-
buildPythonPackage rec {
14+
buildPythonPackage (finalAttrs: {
1415
pname = "chat-downloader";
1516
version = "0.2.8";
16-
format = "setuptools";
17+
pyproject = true;
18+
19+
__structuredAttrs = true;
1720

1821
src = fetchPypi {
19-
inherit version pname;
22+
inherit (finalAttrs) version pname;
2023
hash = "sha256-WBasBhefgRkOdMdz2K/agvS+cY6m3/33wiu+Jl4d1Cg=";
2124
};
2225

23-
propagatedBuildInputs = [
26+
build-system = [ setuptools ];
27+
28+
dependencies = [
2429
requests
2530
isodate
2631
docstring-parser
@@ -39,8 +44,8 @@ buildPythonPackage rec {
3944
description = "Simple tool used to retrieve chat messages from livestreams, videos, clips and past broadcasts";
4045
mainProgram = "chat_downloader";
4146
homepage = "https://github.com/xenova/chat-downloader";
42-
changelog = "https://github.com/xenova/chat-downloader/releases/tag/v${version}";
47+
changelog = "https://github.com/xenova/chat-downloader/releases/tag/v${finalAttrs.version}";
4348
license = lib.licenses.mit;
4449
maintainers = [ ];
4550
};
46-
}
51+
})

0 commit comments

Comments
 (0)