nixpkgs/pkgs/development/python-modules/plexapi/default.nix

39 lines
753 B
Nix
Raw Normal View History

2021-02-08 01:42:35 -08:00
{ lib
, buildPythonPackage
, fetchFromGitHub
, requests
, tqdm
, websocket_client
, isPy27
}:
2020-01-20 18:30:48 -08:00
buildPythonPackage rec {
pname = "PlexAPI";
version = "4.4.1";
disabled = isPy27;
2020-01-20 18:30:48 -08:00
src = fetchFromGitHub {
owner = "pkkid";
repo = "python-plexapi";
rev = version;
sha256 = "11zarqnrpis6xpsjdvfl3pczv1l9rzbgkawkv2lhfvzlnc00d7df";
2020-01-20 18:30:48 -08:00
};
2021-02-08 01:42:35 -08:00
propagatedBuildInputs = [
requests
tqdm
websocket_client
];
2020-01-20 18:30:48 -08:00
2021-02-08 01:42:35 -08:00
# Tests require a running Plex instance
doCheck = false;
pythonImportsCheck = [ "plexapi" ];
2020-01-20 18:30:48 -08:00
meta = with lib; {
description = "Python bindings for the Plex API";
2021-02-08 01:42:35 -08:00
homepage = "https://github.com/pkkid/python-plexapi";
2020-01-20 18:30:48 -08:00
license = licenses.bsd3;
maintainers = with maintainers; [ colemickens ];
};
}