depot/third_party/nixpkgs/pkgs/development/python-modules/plexauth/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

31 lines
804 B
Nix

{ lib, buildPythonPackage, fetchFromGitHub, aiohttp, isPy27 }:
buildPythonPackage rec {
pname = "plexauth";
version = "0.0.5";
disabled = isPy27;
src = fetchFromGitHub {
owner = "jjlawren";
repo = "python-plexauth";
rev = "v${version}";
sha256 = "1wbrn22iywl4ccz64r3w3f17k0r7vi2cqkqd2mrdkx5xqhscn9hz";
};
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 ];
};
}