diff --git a/pkgs/development/python-modules/beautifultable/default.nix b/pkgs/development/python-modules/beautifultable/default.nix index 929687c06871..516765c574de 100644 --- a/pkgs/development/python-modules/beautifultable/default.nix +++ b/pkgs/development/python-modules/beautifultable/default.nix @@ -2,23 +2,28 @@ lib, buildPythonPackage, fetchFromGitHub, + setuptools, wcwidth, pytestCheckHook, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "beautifultable"; version = "1.1.0"; - format = "setuptools"; + pyproject = true; + + __structuredAttrs = true; src = fetchFromGitHub { owner = "pri22296"; repo = "beautifultable"; - rev = "v${version}"; + tag = "v${finalAttrs.version}"; hash = "sha256-/SReCEvSwiNjBoz/3tGJ9zUNBAag4mLsHlUXwm47zCw="; }; - propagatedBuildInputs = [ wcwidth ]; + build-system = [ setuptools ]; + + dependencies = [ wcwidth ]; nativeCheckInputs = [ pytestCheckHook ]; @@ -32,4 +37,4 @@ buildPythonPackage rec { license = with lib.licenses; [ mit ]; maintainers = with lib.maintainers; [ fab ]; }; -} +})