mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-12-04 03:40:18 +00:00
Diff: https://github.com/chemelli74/aiovitesy/compare/v1.4.6...v1.4.8 Changelog: https://github.com/chemelli74/aiovitesy/blob/v1.4.8/CHANGELOG.md
65 lines
1.2 KiB
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 ];
|
|
};
|
|
})
|