1{
2 lib,
3 beautifulsoup4,
4 buildPythonPackage,
5 fetchFromGitHub,
6 google-auth,
7 grpcio,
8 protobuf,
9 pytestCheckHook,
10 pythonOlder,
11 requests,
12 setuptools,
13}:
14
15buildPythonPackage rec {
16 pname = "gassist-text";
17 version = "0.0.14";
18 format = "pyproject";
19
20 disabled = pythonOlder "3.7";
21
22 src = fetchFromGitHub {
23 owner = "tronikos";
24 repo = "gassist_text";
25 tag = version;
26 hash = "sha256-Nk2GwqColX/d1nUL+YvolLH/1g1FTDZbExhBGot/EV0=";
27 };
28
29 nativeBuildInputs = [ setuptools ];
30
31 propagatedBuildInputs = [
32 beautifulsoup4
33 google-auth
34 grpcio
35 protobuf
36 requests
37 ];
38
39 checkInputs = [ pytestCheckHook ];
40
41 pythonImportsCheck = [ "gassist_text" ];
42
43 meta = with lib; {
44 description = "Module for interacting with Google Assistant API via text";
45 homepage = "https://github.com/tronikos/gassist_text";
46 changelog = "https://github.com/tronikos/gassist_text/releases/tag/${version}";
47 license = with licenses; [ asl20 ];
48 maintainers = with maintainers; [ fab ];
49 };
50}