mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-19 12:14:10 +00:00
44 lines
802 B
Nix
44 lines
802 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, requests
|
|
, tqdm
|
|
, websocket-client
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "plexapi";
|
|
version = "4.9.1";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "pkkid";
|
|
repo = "python-plexapi";
|
|
rev = version;
|
|
sha256 = "0c0zhbq6ggn5ck4cgbr92440xhfk3iz5a8fm25909idlx8vw0s3q";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|