3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #282892 from fabaff/pykoplenti-fix

python311Packages.pykoplenti: relax pydantic
This commit is contained in:
Fabian Affolter 2024-01-23 23:57:25 +01:00 committed by GitHub
commit 43ced8e5d1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -7,32 +7,32 @@
, pycryptodome
, pydantic
, pythonOlder
, pythonRelaxDepsHook
, setuptools
}:
buildPythonPackage rec {
pname = "pykoplenti";
version = "1.2.2";
format = "pyproject";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "stegm";
repo = pname;
repo = "pykoplenti";
rev = "refs/tags/v${version}";
hash = "sha256-2sGkHCIGo1lzLurvQBmq+16sodAaK8v+mAbIH/Gd3+E=";
};
nativeBuildInputs = [
setuptools
pythonRelaxDeps = [
"pydantic"
];
postPatch = ''
# remove with 1.1.0
substituteInPlace setup.cfg \
--replace 'version = unreleased' 'version = ${version}'
'';
nativeBuildInputs = [
pythonRelaxDepsHook
setuptools
];
propagatedBuildInputs = [
aiohttp
@ -50,11 +50,14 @@ buildPythonPackage rec {
# Project has no tests
doCheck = false;
pythonImportsCheck = [ "pykoplenti" ];
pythonImportsCheck = [
"pykoplenti"
];
meta = with lib; {
description = "Python REST client API for Kostal Plenticore Inverters";
homepage = "https://github.com/stegm/pykoplenti/";
changelog = "https://github.com/stegm/pykoplenti/releases/tag/v${version}";
license = with licenses; [ asl20 ];
maintainers = with maintainers; [ fab ];
};