Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / plexapi / default.nix
blob47ce92cc68f6d5dcf9907c8d99875e461621c42d
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , requests
5 , tqdm
6 , websocket-client
7 , pythonOlder
8 }:
10 buildPythonPackage rec {
11   pname = "plexapi";
12   version = "4.15.6";
13   format = "setuptools";
15   disabled = pythonOlder "3.8";
17   src = fetchFromGitHub {
18     owner = "pkkid";
19     repo = "python-plexapi";
20     rev = "refs/tags/${version}";
21     hash = "sha256-VU1HVAxAOraTd4VQIqG/MLkw77xciCICIh1zbzGn/dQ=";
22   };
24   propagatedBuildInputs = [
25     requests
26     tqdm
27     websocket-client
28   ];
30   # Tests require a running Plex instance
31   doCheck = false;
33   pythonImportsCheck = [
34     "plexapi"
35   ];
37   meta = with lib; {
38     description = "Python bindings for the Plex API";
39     homepage = "https://github.com/pkkid/python-plexapi";
40     changelog = "https://github.com/pkkid/python-plexapi/releases/tag/${version}";
41     license = licenses.bsd3;
42     maintainers = with maintainers; [ colemickens ];
43   };