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