1{
2 lib,
3 buildPythonPackage,
4 pythonOlder,
5 fetchFromGitHub,
6 setuptools,
7 umodbus,
8 pytestCheckHook,
9}:
10
11buildPythonPackage rec {
12 pname = "pysolarmanv5";
13 version = "3.0.6";
14 pyproject = true;
15
16 disabled = pythonOlder "3.8";
17
18 src = fetchFromGitHub {
19 owner = "jmccrohan";
20 repo = "pysolarmanv5";
21 tag = "v${version}";
22 hash = "sha256-ENEXuMQGQ1Jwgpfp2v0T2dveTJoIaVu+DfefQZy8ntE=";
23 };
24
25 build-system = [
26 setuptools
27 ];
28
29 dependencies = [
30 umodbus
31 ];
32
33 nativeCheckInputs = [ pytestCheckHook ];
34
35 pythonImportsCheck = [ "pysolarmanv5" ];
36
37 meta = {
38 description = "Python module to interact with Solarman Data Logging Sticks";
39 changelog = "https://github.com/jmccrohan/pysolarmanv5/blob/${src.tag}/CHANGELOG.md";
40 homepage = "https://github.com/jmccrohan/pysolarmanv5";
41 license = lib.licenses.mit;
42 maintainers = with lib.maintainers; [ Scrumplex ];
43 };
44}