2021-02-22 21:28:39 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
|
|
|
, requests
|
|
|
|
, responses
|
2023-11-16 04:20:00 +00:00
|
|
|
, setuptools
|
2021-02-22 21:28:39 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "python-twitch-client";
|
|
|
|
version = "0.7.1";
|
2023-11-16 04:20:00 +00:00
|
|
|
pyproject = true;
|
|
|
|
|
2021-02-22 21:28:39 +00:00
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tsifrer";
|
2023-11-16 04:20:00 +00:00
|
|
|
repo = "python-twitch-client";
|
|
|
|
rev = "refs/tags/${version}";
|
|
|
|
sha256 = "sha256-gxBpltwExb9bg3HLkz/MNlP5Q3/x97RHxhbwNqqanIM=";
|
2021-02-22 21:28:39 +00:00
|
|
|
};
|
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
requests
|
|
|
|
];
|
2021-02-22 21:28:39 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-02-22 21:28:39 +00:00
|
|
|
pytestCheckHook
|
|
|
|
responses
|
|
|
|
];
|
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"twitch"
|
|
|
|
];
|
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
# Tests require network access
|
|
|
|
"test_delete_from_community"
|
|
|
|
"test_update"
|
|
|
|
];
|
2021-02-22 21:28:39 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python wrapper for the Twitch API";
|
|
|
|
homepage = "https://github.com/tsifrer/python-twitch-client";
|
2023-11-16 04:20:00 +00:00
|
|
|
changelog = "https://github.com/tsifrer/python-twitch-client/blob/${version}/CHANGELOG.md";
|
2021-02-22 21:28:39 +00:00
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|