mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-13 11:30:35 +08:00
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
37 lines
798 B
Nix
37 lines
798 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
aiohttp,
|
|
isPy27,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "plexauth";
|
|
version = "0.0.6";
|
|
format = "setuptools";
|
|
disabled = isPy27;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "jjlawren";
|
|
repo = "python-plexauth";
|
|
rev = "v${version}";
|
|
sha256 = "1wy6syz3cgfw28zvigh2br4jabg8rzpi5l0bhfb6vjjc7aam13ag";
|
|
};
|
|
|
|
propagatedBuildInputs = [ aiohttp ];
|
|
|
|
# package does not include tests
|
|
doCheck = false;
|
|
|
|
# at least guarantee the module can be imported
|
|
pythonImportsCheck = [ "plexauth" ];
|
|
|
|
meta = {
|
|
homepage = "https://github.com/jjlawren/python-plexauth/";
|
|
description = "Handles the authorization flow to obtain tokens from Plex.tv via external redirection";
|
|
license = lib.licenses.mit;
|
|
maintainers = [ ];
|
|
};
|
|
}
|