1{
2 buildPythonPackage,
3 fetchFromGitHub,
4 lib,
5 pyserial,
6 setuptools,
7}:
8
9buildPythonPackage rec {
10 pname = "momonga";
11 version = "0.1.5";
12 pyproject = true;
13
14 src = fetchFromGitHub {
15 owner = "nbtk";
16 repo = "momonga";
17 tag = "v${version}";
18 hash = "sha256-sc81L71DJq+XiIYUSMH6knfaPfV7cng/Sp0ZTY6N7ZI=";
19 };
20
21 build-system = [ setuptools ];
22
23 dependencies = [
24 pyserial
25 ];
26
27 pythonImportsCheck = [ "momonga" ];
28
29 # tests require access to the API
30 doCheck = false;
31
32 meta = {
33 changelog = "https://github.com/nbtk/momonga/releases/tag/${src.tag}";
34 description = "Python Route B Library: A Communicator for Low-voltage Smart Electric Energy Meters";
35 homepage = "https://github.com/nbtk/momonga";
36 license = lib.licenses.mit;
37 maintainers = [ lib.maintainers.dotlambda ];
38 };
39}