1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pythonOlder,
6 requests,
7}:
8
9buildPythonPackage rec {
10 pname = "pymsteams";
11 version = "0.2.2";
12 format = "setuptools";
13
14 disabled = pythonOlder "3.7";
15
16 src = fetchFromGitHub {
17 owner = "rveachkc";
18 repo = pname;
19 rev = version;
20 hash = "sha256-H1AEjUnEK+seKsnFnHpn1/aHxXcbyz67NbzhlGDtbk4=";
21 };
22
23 propagatedBuildInputs = [ requests ];
24
25 # Tests require network access
26 doCheck = false;
27
28 pythonImportsCheck = [ "pymsteams" ];
29
30 meta = with lib; {
31 description = "Python module to interact with Microsoft Teams";
32 homepage = "https://github.com/rveachkc/pymsteams";
33 license = with licenses; [ asl20 ];
34 maintainers = with maintainers; [ fab ];
35 };
36}