Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / python-twitch-client / default.nix
blob29a10ced06f28e74bdce8ab9aaa2c1e608a37531
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , pytestCheckHook
5 , pythonOlder
6 , requests
7 , responses
8 , setuptools
9 }:
11 buildPythonPackage rec {
12   pname = "python-twitch-client";
13   version = "0.7.1";
14   pyproject = true;
16   disabled = pythonOlder "3.6";
18   src = fetchFromGitHub {
19     owner = "tsifrer";
20     repo = "python-twitch-client";
21     rev = "refs/tags/${version}";
22     sha256 = "sha256-gxBpltwExb9bg3HLkz/MNlP5Q3/x97RHxhbwNqqanIM=";
23   };
25   nativeBuildInputs = [
26     setuptools
27   ];
29   propagatedBuildInputs = [
30     requests
31   ];
33   nativeCheckInputs = [
34     pytestCheckHook
35     responses
36   ];
38   pythonImportsCheck = [
39     "twitch"
40   ];
42   disabledTests = [
43     # Tests require network access
44     "test_delete_from_community"
45     "test_update"
46   ];
48   meta = with lib; {
49     description = "Python wrapper for the Twitch API";
50     homepage = "https://github.com/tsifrer/python-twitch-client";
51     changelog = "https://github.com/tsifrer/python-twitch-client/blob/${version}/CHANGELOG.md";
52     license = with licenses; [ mit ];
53     maintainers = with maintainers; [ fab ];
54   };