depot/third_party/nixpkgs/pkgs/development/python-modules/plexapi/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

46 lines
936 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pythonOlder,
requests,
setuptools,
tqdm,
websocket-client,
}:
buildPythonPackage rec {
pname = "plexapi";
version = "4.15.13";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "pkkid";
repo = "python-plexapi";
rev = "refs/tags/${version}";
hash = "sha256-i898cHYOSrzSreWBmW7W9QBUoyIDKwmt4k2wgutN3bw=";
};
build-system = [ setuptools ];
dependencies = [
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 ];
};
}