1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 aiohttp,
6 isPy27,
7}:
8
9buildPythonPackage rec {
10 pname = "plexauth";
11 version = "0.0.6";
12 format = "setuptools";
13 disabled = isPy27;
14
15 src = fetchFromGitHub {
16 owner = "jjlawren";
17 repo = "python-plexauth";
18 rev = "v${version}";
19 sha256 = "1wy6syz3cgfw28zvigh2br4jabg8rzpi5l0bhfb6vjjc7aam13ag";
20 };
21
22 propagatedBuildInputs = [ aiohttp ];
23
24 # package does not include tests
25 doCheck = false;
26
27 # at least guarantee the module can be imported
28 pythonImportsCheck = [ "plexauth" ];
29
30 meta = with lib; {
31 homepage = "https://github.com/jjlawren/python-plexauth/";
32 description = "Handles the authorization flow to obtain tokens from Plex.tv via external redirection";
33 license = licenses.mit;
34 maintainers = with maintainers; [ ];
35 };
36}