1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-05 07:12:34 +03:00
nixpkgs/pkgs/development/python-modules/plexapi/default.nix
2022-11-13 21:43:57 +01:00

43 lines
815 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, requests
, tqdm
, websocket-client
, pythonOlder
}:
buildPythonPackage rec {
pname = "plexapi";
version = "4.13.1";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "pkkid";
repo = "python-plexapi";
rev = "refs/tags/${version}";
hash = "sha256-py3UmKie96FR8klf97zsYxUkrQisO7/cnWUgKxgB+tQ=";
};
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 ];
};
}