depot/third_party/nixpkgs/pkgs/development/python-modules/plexapi/default.nix
Default email 01ed8ef136 Project import generated by Copybara.
GitOrigin-RevId: 20fc948445a6c22d4e8d5178e9a6bc6e1f5417c8
2022-11-21 19:40:18 +02:00

43 lines
815 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, requests
, tqdm
, websocket-client
, pythonOlder
}:
buildPythonPackage rec {
pname = "plexapi";
version = "4.13.1";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "pkkid";
repo = "python-plexapi";
rev = "refs/tags/${version}";
hash = "sha256-py3UmKie96FR8klf97zsYxUkrQisO7/cnWUgKxgB+tQ=";
};
propagatedBuildInputs = [
requests
tqdm
websocket-client
];
# Tests require a running Plex instance
doCheck = false;
pythonImportsCheck = [
"plexapi"
];
meta = with lib; {
description = "Python bindings for the Plex API";
homepage = "https://github.com/pkkid/python-plexapi";
license = licenses.bsd3;
maintainers = with maintainers; [ colemickens ];
};
}