mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-06 18:26:45 +01:00
44 lines
801 B
Nix
44 lines
801 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, requests
|
|
, tqdm
|
|
, websocket-client
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "plexapi";
|
|
version = "4.8.0";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "pkkid";
|
|
repo = "python-plexapi";
|
|
rev = version;
|
|
sha256 = "sha256-e+nZi84mF9Z/gbFyhmE9TlntkTyrfoNr3U/fwH55fjw=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|