mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-16 02:33:25 +00:00
45 lines
898 B
Nix
45 lines
898 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, requests
|
|
, tqdm
|
|
, websocket-client
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "plexapi";
|
|
version = "4.13.4";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "pkkid";
|
|
repo = "python-plexapi";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-yq1tQ6xJn+IxrKXwUVeLhki6sdkwzu9hHSILsLJdPPY=";
|
|
};
|
|
|
|
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";
|
|
changelog = "https://github.com/pkkid/python-plexapi/releases/tag/${version}";
|
|
license = licenses.bsd3;
|
|
maintainers = with maintainers; [ colemickens ];
|
|
};
|
|
}
|