2021-02-13 20:27:20 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, requests
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pymsteams";
|
2021-05-22 11:07:41 +01:00
|
|
|
version = "0.1.15";
|
2021-02-13 20:27:20 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "rveachkc";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2021-05-22 11:07:41 +01:00
|
|
|
sha256 = "sha256-PBh6AmKqdiD3WJQnVqUj4DUVv9I0ZZJ6E0McfWQIiwQ=";
|
2021-02-13 20:27:20 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ requests ];
|
|
|
|
|
|
|
|
# Tests require network access
|
|
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "pymsteams" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python module to interact with Microsoft Teams";
|
|
|
|
homepage = "https://github.com/rveachkc/pymsteams";
|
|
|
|
license = with licenses; [ asl20 ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|