Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / pyotgw / default.nix
blob71ef391cb49f4fc7c1bf62bc9fae07500918729c
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , pyserial-asyncio
5 , pytest-asyncio
6 , pytestCheckHook
7 , pythonOlder
8 }:
10 buildPythonPackage rec {
11   pname = "pyotgw";
12   version = "2.1.3";
13   format = "setuptools";
15   disabled = pythonOlder "3.8";
17   src = fetchFromGitHub {
18     owner = "mvn23";
19     repo = pname;
20     rev = "refs/tags/${version}";
21     hash = "sha256-XIwBGjvIulKLmYZIorKIJwoHTNOIYYX8US2Na8MZ2LA=";
22   };
24   propagatedBuildInputs = [
25     pyserial-asyncio
26   ];
28   nativeCheckInputs = [
29     pytest-asyncio
30     pytestCheckHook
31   ];
33   pythonImportsCheck = [
34     "pyotgw"
35   ];
37   meta = with lib; {
38     description = "Python module to interact the OpenTherm Gateway";
39     homepage = "https://github.com/mvn23/pyotgw";
40     changelog = "https://github.com/mvn23/pyotgw/blob/${version}/CHANGELOG.md";
41     license = with licenses; [ gpl3Plus ];
42     maintainers = with maintainers; [ fab ];
43   };