summary refs log tree commit diff
path: root/pkgs/development/python-modules/twitch-python/default.nix
blob: c11e8bd4fdaa721cd95c61fcc431690702d4586a (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
{ lib, buildPythonPackage, fetchPypi, requests, rx, pytestCheckHook, responses, isPy3k }:

buildPythonPackage rec {
  pname = "twitch-python";
  version = "0.0.20";

  src = fetchPypi {
    inherit pname version;
    sha256 = "sha256-bgnXIQuOCrtoknZ9ciB56zWxTCnncM2032TVaey6oXw=";
  };

  disabled = !isPy3k;

  postPatch = ''
    substituteInPlace setup.py --replace "'pipenv'," ""
  '';

  propagatedBuildInputs = [ requests rx ];

  checkInputs = [ pytestCheckHook responses ];

  pythonImportsCheck = [ "twitch" ];

  meta = with lib; {
    description = "Twitch module for Python";
    homepage = "https://github.com/PetterKraabol/Twitch-Python";
    license = licenses.mit;
    maintainers = with maintainers; [ marsam ];
  };
}