summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/plexauth/default.nix
blob: aba650e2cbef051723853f7070bee06dffe2a255 (plain)
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
31
32
33
34
35
36
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  aiohttp,
  isPy27,
}:

buildPythonPackage rec {
  pname = "plexauth";
  version = "0.0.6";
  format = "setuptools";
  disabled = isPy27;

  src = fetchFromGitHub {
    owner = "jjlawren";
    repo = "python-plexauth";
    rev = "v${version}";
    sha256 = "1wy6syz3cgfw28zvigh2br4jabg8rzpi5l0bhfb6vjjc7aam13ag";
  };

  propagatedBuildInputs = [ aiohttp ];

  # package does not include tests
  doCheck = false;

  # at least guarantee the module can be imported
  pythonImportsCheck = [ "plexauth" ];

  meta = {
    homepage = "https://github.com/jjlawren/python-plexauth/";
    description = "Handles the authorization flow to obtain tokens from Plex.tv via external redirection";
    license = lib.licenses.mit;
    maintainers = [ ];
  };
}