From 814f85740eba8d7f1e480028f9abba83c76e8bad Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 20 Jan 2024 17:18:51 +0100 Subject: [PATCH] python311Packages.pylint-plugin-utils: refactor --- .../python-modules/pylint-plugin-utils/default.nix | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/pylint-plugin-utils/default.nix b/pkgs/development/python-modules/pylint-plugin-utils/default.nix index a8cff3800960..25cc23e95472 100644 --- a/pkgs/development/python-modules/pylint-plugin-utils/default.nix +++ b/pkgs/development/python-modules/pylint-plugin-utils/default.nix @@ -4,23 +4,28 @@ , pylint , pytestCheckHook , pythonOlder +, setuptools , toml }: buildPythonPackage rec { pname = "pylint-plugin-utils"; version = "0.7"; - format = "setuptools"; + pyproject = true; disabled = pythonOlder "3.7"; src = fetchFromGitHub { owner = "PyCQA"; - repo = pname; - rev = version; + repo = "pylint-plugin-utils"; + rev = "refs/tags/${version}"; hash = "sha256-uDsSSUWdlzuQz6umoYLbIotOYNEnLQu041ZZVMRd2ww="; }; + nativeBuildInputs = [ + setuptools + ]; + propagatedBuildInputs = [ pylint toml