diff --git a/pkgs/development/python-modules/socialscan/default.nix b/pkgs/development/python-modules/socialscan/default.nix index c97677dba1bc..073553c1e196 100644 --- a/pkgs/development/python-modules/socialscan/default.nix +++ b/pkgs/development/python-modules/socialscan/default.nix @@ -4,22 +4,25 @@ buildPythonPackage, fetchFromGitHub, colorama, + setuptools, tqdm, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "socialscan"; version = "2.0.1"; - format = "setuptools"; + pyproject = true; src = fetchFromGitHub { owner = "iojw"; repo = "socialscan"; - tag = "v${version}"; + tag = "v${finalAttrs.version}"; hash = "sha256-4JJVhB6x1NGagtfzE03Jae2GOr25hh+4l7gQ23zc7Ck="; }; - propagatedBuildInputs = [ + build-system = [ setuptools ]; + + dependencies = [ aiohttp colorama tqdm @@ -34,8 +37,8 @@ buildPythonPackage rec { description = "Python library and CLI for accurately querying username and email usage on online platforms"; mainProgram = "socialscan"; homepage = "https://github.com/iojw/socialscan"; - changelog = "https://github.com/iojw/socialscan/releases/tag/v${version}"; + changelog = "https://github.com/iojw/socialscan/releases/tag/v${finalAttrs.version}"; license = with lib.licenses; [ mpl20 ]; maintainers = with lib.maintainers; [ fab ]; }; -} +})