python311Packages.raincloudy: refactor

+11 -10
+11 -10
pkgs/development/python-modules/raincloudy/default.nix
··· 19 buildPythonPackage rec { 20 pname = "raincloudy"; 21 version = "1.2.0"; 22 - format = "setuptools"; 23 24 disabled = pythonOlder "3.7"; 25 26 src = fetchFromGitHub { 27 owner = "vanstinator"; 28 - repo = pname; 29 rev = "refs/tags/${version}"; 30 hash = "sha256-qCkBVirM09iA1sXiOB9FJns8bHjQq7rRk8XbRWrtBDI="; 31 }; 32 33 - nativeBuildInputs = [ 34 - setuptools 35 - setuptools-scm 36 - ]; 37 - 38 postPatch = '' 39 # https://github.com/vanstinator/raincloudy/pull/60 40 substituteInPlace setup.py \ 41 - --replace "bs4" "beautifulsoup4" \ 42 43 # fix raincloudy.aio package discovery, by relying on 44 # autodiscovery instead. 45 sed -i '/packages=/d' setup.py 46 ''; 47 48 - propagatedBuildInputs = [ 49 aiohttp 50 requests 51 beautifulsoup4 ··· 74 meta = with lib; { 75 description = "Module to interact with Melnor RainCloud Smart Garden Watering Irrigation Timer"; 76 homepage = "https://github.com/vanstinator/raincloudy"; 77 - license = with licenses; [ asl20 ]; 78 maintainers = with maintainers; [ fab ]; 79 }; 80 }
··· 19 buildPythonPackage rec { 20 pname = "raincloudy"; 21 version = "1.2.0"; 22 + pypriject = true; 23 24 disabled = pythonOlder "3.7"; 25 26 src = fetchFromGitHub { 27 owner = "vanstinator"; 28 + repo = "raincloudy"; 29 rev = "refs/tags/${version}"; 30 hash = "sha256-qCkBVirM09iA1sXiOB9FJns8bHjQq7rRk8XbRWrtBDI="; 31 }; 32 33 postPatch = '' 34 # https://github.com/vanstinator/raincloudy/pull/60 35 substituteInPlace setup.py \ 36 + --replace-fail "bs4" "beautifulsoup4" \ 37 38 # fix raincloudy.aio package discovery, by relying on 39 # autodiscovery instead. 40 sed -i '/packages=/d' setup.py 41 ''; 42 43 + build-system = [ 44 + setuptools 45 + setuptools-scm 46 + ]; 47 + 48 + dependencies = [ 49 aiohttp 50 requests 51 beautifulsoup4 ··· 74 meta = with lib; { 75 description = "Module to interact with Melnor RainCloud Smart Garden Watering Irrigation Timer"; 76 homepage = "https://github.com/vanstinator/raincloudy"; 77 + changelog = "https://github.com/vanstinator/raincloudy/releases/tag/${version}"; 78 + license = licenses.asl20; 79 maintainers = with maintainers; [ fab ]; 80 }; 81 }