depot/third_party/nixpkgs/pkgs/development/python-modules/plexapi/default.nix
Default email c7cb07f092 Project import generated by Copybara.
GitOrigin-RevId: 1536926ef5621b09bba54035ae2bb6d806d72ac8
2024-02-29 21:09:43 +01:00

49 lines
952 B
Nix

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