2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pythonOlder,
|
|
|
|
requests,
|
2024-07-27 06:49:29 +00:00
|
|
|
setuptools,
|
2021-02-16 17:04:54 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pymsteams";
|
2024-07-27 06:49:29 +00:00
|
|
|
version = "0.2.3";
|
|
|
|
pyproject = true;
|
2022-01-22 01:22:15 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2021-02-16 17:04:54 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "rveachkc";
|
2024-07-27 06:49:29 +00:00
|
|
|
repo ="pymsteams";
|
|
|
|
rev = "refs/tags/${version}";
|
|
|
|
hash = "sha256-suPCAzjQp46+kKFiCtm65lxBbsn78Owq4dVmWCdhIpA=";
|
2021-02-16 17:04:54 +00:00
|
|
|
};
|
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
build-system = [ setuptools ];
|
|
|
|
|
|
|
|
dependencies = [ requests ];
|
2021-02-16 17:04:54 +00:00
|
|
|
|
|
|
|
# Tests require network access
|
|
|
|
doCheck = false;
|
2022-01-22 01:22:15 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "pymsteams" ];
|
2021-02-16 17:04:54 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python module to interact with Microsoft Teams";
|
|
|
|
homepage = "https://github.com/rveachkc/pymsteams";
|
2024-07-27 06:49:29 +00:00
|
|
|
changelog = "https://github.com/rveachkc/pymsteams/releases/tag/${version}";
|
2021-02-16 17:04:54 +00:00
|
|
|
license = with licenses; [ asl20 ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|