Files
nixpkgs/pkgs/development/python-modules/aiovitesy/default.nix

65 lines
1.2 KiB
Nix

{
lib,
aiohttp,
aiomqtt,
buildPythonPackage,
certifi,
fetchFromGitHub,
openssl,
orjson,
pytest-cov-stub,
pytestCheckHook,
setuptools,
yarl,
}:
buildPythonPackage (finalAttrs: {
pname = "aiovitesy";
version = "1.4.8";
pyproject = true;
src = fetchFromGitHub {
owner = "chemelli74";
repo = "aiovitesy";
tag = "v${finalAttrs.version}";
hash = "sha256-hmxNjZSxBLy+qFnQenuWFb4dvygicbU1s6mybY9J6Zw=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail "setuptools>=84.2.1" "setuptools"
'';
pythonRelaxDeps = [
"aiohttp"
"certifi"
"orjson"
];
build-system = [ setuptools ];
dependencies = [
aiohttp
aiomqtt
certifi
orjson
yarl
];
nativeCheckInputs = [
openssl
pytest-cov-stub
pytestCheckHook
];
pythonImportsCheck = [ "aiovitesy" ];
meta = {
description = "Python library to control Vitesy devices";
homepage = "https://github.com/chemelli74/aiovitesy";
changelog = "https://github.com/chemelli74/aiovitesy/blob/${finalAttrs.src.tag}/CHANGELOG.md";
license = lib.licenses.asl20;
maintainers = [ lib.maintainers.jamiemagee ];
};
})