1{
2 aiohttp,
3 bleak,
4 buildPythonPackage,
5 fetchFromGitHub,
6 hatch-regex-commit,
7 hatchling,
8 lib,
9 pytest-asyncio,
10 pytest-cov-stub,
11 pytestCheckHook,
12}:
13
14buildPythonPackage rec {
15 pname = "pynecil";
16 version = "4.1.0";
17 pyproject = true;
18
19 src = fetchFromGitHub {
20 owner = "tr4nt0r";
21 repo = "pynecil";
22 tag = "v${version}";
23 hash = "sha256-zgiOdVdc74m+DNg6Phn5L0F/u1jF4OOvGAyvMZzzhAU=";
24 };
25
26 pythonRelaxDeps = [ "aiohttp" ];
27
28 build-system = [
29 hatch-regex-commit
30 hatchling
31 ];
32
33 dependencies = [
34 aiohttp
35 bleak
36 ];
37
38 pythonImportsCheck = [ "pynecil" ];
39
40 nativeCheckInputs = [
41 pytest-asyncio
42 pytest-cov-stub
43 pytestCheckHook
44 ];
45
46 meta = {
47 changelog = "https://github.com/tr4nt0r/pynecil/releases/tag/${src.tag}";
48 description = "Python library to communicate with Pinecil V2 soldering irons via Bluetooth";
49 homepage = "https://github.com/tr4nt0r/pynecil";
50 license = lib.licenses.mit;
51 maintainers = with lib.maintainers; [ dotlambda ];
52 };
53}