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