1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pythonOlder,
6 requests,
7 setuptools,
8 setuptools-scm,
9}:
10
11buildPythonPackage rec {
12 pname = "pymsteams";
13 version = "0.2.5";
14 pyproject = true;
15
16 disabled = pythonOlder "3.7";
17
18 src = fetchFromGitHub {
19 owner = "rveachkc";
20 repo = "pymsteams";
21 tag = version;
22 hash = "sha256-Ze25mcXCRaon6qzWzcltD8kwJTfrG2w5jMswXymmKo4=";
23 };
24
25 build-system = [
26 setuptools
27 setuptools-scm
28 ];
29
30 dependencies = [ requests ];
31
32 # Tests require network access
33 doCheck = false;
34
35 pythonImportsCheck = [ "pymsteams" ];
36
37 meta = with lib; {
38 description = "Python module to interact with Microsoft Teams";
39 homepage = "https://github.com/rveachkc/pymsteams";
40 changelog = "https://github.com/rveachkc/pymsteams/releases/tag/${version}";
41 license = with licenses; [ asl20 ];
42 maintainers = with maintainers; [ fab ];
43 };
44}