54 lines
1.0 KiB
Nix

{
aiohttp,
bleak,
buildPythonPackage,
fetchFromGitHub,
hatch-regex-commit,
hatchling,
lib,
pytest-asyncio,
pytest-cov-stub,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "pynecil";
version = "4.1.1";
pyproject = true;
src = fetchFromGitHub {
owner = "tr4nt0r";
repo = "pynecil";
tag = "v${version}";
hash = "sha256-4P9xsqTitUinGC/dH/4e/HtF7OvupjqTTNKTwo9Vuhc=";
};
pythonRelaxDeps = [ "aiohttp" ];
build-system = [
hatch-regex-commit
hatchling
];
dependencies = [
aiohttp
bleak
];
pythonImportsCheck = [ "pynecil" ];
nativeCheckInputs = [
pytest-asyncio
pytest-cov-stub
pytestCheckHook
];
meta = {
changelog = "https://github.com/tr4nt0r/pynecil/releases/tag/${src.tag}";
description = "Python library to communicate with Pinecil V2 soldering irons via Bluetooth";
homepage = "https://github.com/tr4nt0r/pynecil";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ dotlambda ];
};
}