1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 requests,
6 rx,
7 pytestCheckHook,
8 responses,
9 isPy3k,
10}:
11
12buildPythonPackage rec {
13 pname = "twitch-python";
14 version = "0.0.20";
15 format = "setuptools";
16
17 src = fetchPypi {
18 inherit pname version;
19 hash = "sha256-bgnXIQuOCrtoknZ9ciB56zWxTCnncM2032TVaey6oXw=";
20 };
21
22 disabled = !isPy3k;
23
24 postPatch = ''
25 substituteInPlace setup.py --replace "'pipenv'," ""
26 '';
27
28 propagatedBuildInputs = [
29 requests
30 rx
31 ];
32
33 nativeCheckInputs = [
34 pytestCheckHook
35 responses
36 ];
37
38 pythonImportsCheck = [ "twitch" ];
39
40 meta = with lib; {
41 description = "Twitch module for Python";
42 homepage = "https://github.com/PetterKraabol/Twitch-Python";
43 license = licenses.mit;
44 maintainers = [ ];
45 };
46}