depot/third_party/nixpkgs/pkgs/development/python-modules/plexapi/default.nix
Default email a3bb8d7922 Project import generated by Copybara.
GitOrigin-RevId: 439b1605227b8adb1357b55ce8529d541abbe9eb
2021-08-06 00:33:18 +03:00

39 lines
770 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, requests
, tqdm
, websocket-client
, pythonOlder
}:
buildPythonPackage rec {
pname = "plexapi";
version = "4.7.0";
disabled = pythonOlder "3.5";
src = fetchFromGitHub {
owner = "pkkid";
repo = "python-plexapi";
rev = version;
sha256 = "1gh36ln9ki69rs7ml9syqq956i996rdi145qffjwb3736zylrzkp";
};
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 ];
};
}