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