python3Packages.pymsteams: disable on older Python releases

This commit is contained in:
Fabian Affolter 2022-01-20 10:01:21 +01:00 committed by GitHub
parent 226728e600
commit 26052c3706
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,12 +1,16 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, requests
}:
buildPythonPackage rec {
pname = "pymsteams";
version = "0.2.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "rveachkc";
@ -15,11 +19,16 @@ buildPythonPackage rec {
sha256 = "1q4fm9dwnx5cy8r6gfzbn2f05hacpjfqlsgcyf2cv56wzb9rrg8v";
};
propagatedBuildInputs = [ requests ];
propagatedBuildInputs = [
requests
];
# Tests require network access
doCheck = false;
pythonImportsCheck = [ "pymsteams" ];
pythonImportsCheck = [
"pymsteams"
];
meta = with lib; {
description = "Python module to interact with Microsoft Teams";