about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/python-twitch-client/default.nix
blob: b069de34c3f4f34d73d63141dcda7794a9096d70 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, pythonOlder
, requests
, responses
}:

buildPythonPackage rec {
  pname = "python-twitch-client";
  version = "0.7.1";
  disabled = pythonOlder "3.6";

  src = fetchFromGitHub {
    owner = "tsifrer";
    repo = pname;
    rev = version;
    sha256 = "10wwkam3dw0nqr3v9xzigx1zjlrnrhzr7jvihddvzi84vjb6j443";
  };

  propagatedBuildInputs = [ requests ];

  nativeCheckInputs = [
    pytestCheckHook
    responses
  ];

  pythonImportsCheck = [ "twitch" ];

  meta = with lib; {
    description = "Python wrapper for the Twitch API";
    homepage = "https://github.com/tsifrer/python-twitch-client";
    license = with licenses; [ mit ];
    maintainers = with maintainers; [ fab ];
  };
}