Merge pull request #282892 from fabaff/pykoplenti-fix

python311Packages.pykoplenti: relax pydantic

authored by

Fabian Affolter and committed by
GitHub
43ced8e5 6a994023

+12 -9
+12 -9
pkgs/development/python-modules/pykoplenti/default.nix
··· 7 7 , pycryptodome 8 8 , pydantic 9 9 , pythonOlder 10 + , pythonRelaxDepsHook 10 11 , setuptools 11 12 }: 12 13 13 14 buildPythonPackage rec { 14 15 pname = "pykoplenti"; 15 16 version = "1.2.2"; 16 - format = "pyproject"; 17 + pyproject = true; 17 18 18 19 disabled = pythonOlder "3.7"; 19 20 20 21 src = fetchFromGitHub { 21 22 owner = "stegm"; 22 - repo = pname; 23 + repo = "pykoplenti"; 23 24 rev = "refs/tags/v${version}"; 24 25 hash = "sha256-2sGkHCIGo1lzLurvQBmq+16sodAaK8v+mAbIH/Gd3+E="; 25 26 }; 26 27 28 + pythonRelaxDeps = [ 29 + "pydantic" 30 + ]; 31 + 27 32 nativeBuildInputs = [ 33 + pythonRelaxDepsHook 28 34 setuptools 29 35 ]; 30 36 31 - postPatch = '' 32 - # remove with 1.1.0 33 - substituteInPlace setup.cfg \ 34 - --replace 'version = unreleased' 'version = ${version}' 35 - ''; 36 - 37 37 propagatedBuildInputs = [ 38 38 aiohttp 39 39 pycryptodome ··· 50 50 # Project has no tests 51 51 doCheck = false; 52 52 53 - pythonImportsCheck = [ "pykoplenti" ]; 53 + pythonImportsCheck = [ 54 + "pykoplenti" 55 + ]; 54 56 55 57 meta = with lib; { 56 58 description = "Python REST client API for Kostal Plenticore Inverters"; 57 59 homepage = "https://github.com/stegm/pykoplenti/"; 60 + changelog = "https://github.com/stegm/pykoplenti/releases/tag/v${version}"; 58 61 license = with licenses; [ asl20 ]; 59 62 maintainers = with maintainers; [ fab ]; 60 63 };