forked from mirrors/nixpkgs
python3Packages.pymsteams: disable on older Python releases
This commit is contained in:
parent
226728e600
commit
26052c3706
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue