From ca904d847ef0f51fbeafbf1368ead6819ec84d20 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 14 Jan 2024 10:28:29 +0100 Subject: [PATCH] python311Packages.aiotractive: refactor --- .../python-modules/aiotractive/default.nix | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/aiotractive/default.nix b/pkgs/development/python-modules/aiotractive/default.nix index 6eca100d507a..4af4f9618784 100644 --- a/pkgs/development/python-modules/aiotractive/default.nix +++ b/pkgs/development/python-modules/aiotractive/default.nix @@ -3,22 +3,28 @@ , buildPythonPackage , fetchFromGitHub , pythonOlder +, setuptools , yarl }: buildPythonPackage rec { pname = "aiotractive"; version = "0.5.7"; - format = "setuptools"; + pyproject = true; + disabled = pythonOlder "3.7"; src = fetchFromGitHub { owner = "zhulik"; - repo = pname; - rev = "v${version}"; + repo = "aiotractive"; + rev = "refs/tags/v${version}"; hash = "sha256-fIdIFG1OpAN1R2L2RryTzYZyqGLo3tqAAkRC8UUFM4k="; }; + nativeBuildInputs = [ + setuptools + ]; + propagatedBuildInputs = [ aiohttp yarl @@ -27,7 +33,9 @@ buildPythonPackage rec { # Project has no tests doCheck = false; - pythonImportsCheck = [ "aiotractive" ]; + pythonImportsCheck = [ + "aiotractive" + ]; meta = with lib; { changelog = "https://github.com/zhulik/aiotractive/releases/tag/v${version}";