2020-01-21 02:31:20 +00:00
|
|
|
{ lib, buildPythonPackage, fetchFromGitHub, aiohttp, isPy27 }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "plexauth";
|
2021-02-03 18:15:22 +00:00
|
|
|
version = "0.0.6";
|
2020-01-21 02:31:20 +00:00
|
|
|
disabled = isPy27;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jjlawren";
|
|
|
|
repo = "python-plexauth";
|
|
|
|
rev = "v${version}";
|
2021-02-03 18:15:22 +00:00
|
|
|
sha256 = "1wy6syz3cgfw28zvigh2br4jabg8rzpi5l0bhfb6vjjc7aam13ag";
|
2020-01-21 02:31:20 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ aiohttp ];
|
|
|
|
|
|
|
|
# package does not include tests
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
# at least guarantee the module can be imported
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"plexauth"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/jjlawren/python-plexauth/";
|
|
|
|
description = "Handles the authorization flow to obtain tokens from Plex.tv via external redirection";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ colemickens ];
|
|
|
|
};
|
|
|
|
}
|