nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 buildPythonPackage,
3 fetchFromGitHub,
4 lib,
5 pyserial,
6 setuptools,
7}:
8
9buildPythonPackage rec {
10 pname = "momonga";
11 version = "0.3.0";
12 pyproject = true;
13
14 src = fetchFromGitHub {
15 owner = "nbtk";
16 repo = "momonga";
17 tag = "v${version}";
18 hash = "sha256-ZzQPJcvjRuRjU/u8KjxZ0C4XUb4fbVkLIcsf2JmzDRA=";
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}