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

44 lines
802 B
Nix
Raw Normal View History

2021-02-08 09:42:35 +00:00
{ lib
, buildPythonPackage
, fetchFromGitHub
, requests
, tqdm
, websocket-client
, pythonOlder
2021-02-08 09:42:35 +00:00
}:
2020-01-21 02:30:48 +00:00
buildPythonPackage rec {
pname = "plexapi";
version = "4.9.1";
format = "setuptools";
disabled = pythonOlder "3.6";
2020-01-21 02:30:48 +00:00
src = fetchFromGitHub {
owner = "pkkid";
repo = "python-plexapi";
rev = version;
sha256 = "0c0zhbq6ggn5ck4cgbr92440xhfk3iz5a8fm25909idlx8vw0s3q";
2020-01-21 02:30:48 +00:00
};
2021-02-08 09:42:35 +00:00
propagatedBuildInputs = [
requests
tqdm
websocket-client
2021-02-08 09:42:35 +00:00
];
2020-01-21 02:30:48 +00:00
2021-02-08 09:42:35 +00:00
# Tests require a running Plex instance
doCheck = false;
pythonImportsCheck = [
"plexapi"
];
2020-01-21 02:30:48 +00:00
meta = with lib; {
description = "Python bindings for the Plex API";
2021-02-08 09:42:35 +00:00
homepage = "https://github.com/pkkid/python-plexapi";
2020-01-21 02:30:48 +00:00
license = licenses.bsd3;
maintainers = with maintainers; [ colemickens ];
};
}