python311Packages.raincloudy: refactor

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