Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: bb92cfdda210
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 4e26252c3df4
Choose a head ref
  • 3 commits
  • 4 files changed
  • 1 contributor

Commits on Jan 21, 2020

  1. plexapi: init at 3.2.0

    colemickens authored and Jon committed Jan 21, 2020
    Copy the full SHA
    4249db1 View commit details
  2. plexauth: init at 0.0.5

    colemickens authored and Jon committed Jan 21, 2020

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    51c0802 View commit details
  3. plexwebsocket: init at 0.0.6

    colemickens authored and Jon committed Jan 21, 2020
    Copy the full SHA
    4e26252 View commit details
26 changes: 26 additions & 0 deletions pkgs/development/python-modules/plexapi/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{ lib, buildPythonPackage, fetchFromGitHub, requests
, tqdm, websocket_client, pytest, pillow, mock, isPy27 }:

buildPythonPackage rec {
pname = "PlexAPI";
version = "3.2.0";

src = fetchFromGitHub {
owner = "pkkid";
repo = "python-plexapi";
rev = version;
sha256 = "1rzy018zcsws56mcghnphhzwj650pwj7qg6nh9z1kjvgwwjfmghf";
};

propagatedBuildInputs = [ requests tqdm websocket_client ];

checkInputs = [ pytest pillow ]
++ lib.optionals isPy27 [ mock ];

meta = with lib; {
homepage = "https://github.com/pkkid/python-plexapi";
description = "Python bindings for the Plex API";
license = licenses.bsd3;
maintainers = with maintainers; [ colemickens ];
};
}
31 changes: 31 additions & 0 deletions pkgs/development/python-modules/plexauth/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{ 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 ];
};
}
31 changes: 31 additions & 0 deletions pkgs/development/python-modules/plexwebsocket/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{ lib, buildPythonPackage, fetchFromGitHub, aiohttp, isPy27 }:

buildPythonPackage rec {
pname = "plexwebsocket";
version = "0.0.6";
disabled = isPy27;

src = fetchFromGitHub {
owner = "jjlawren";
repo = "python-plexwebsocket";
rev = "v${version}";
sha256 = "1sy9khxksimcmdvghg1ksk65mkiihjvhi7m7ms2kzmy7mrg3s3i7";
};

propagatedBuildInputs = [ aiohttp ];

# package does not include tests
doCheck = false;

# at least guarantee the module can be imported
pythonImportsCheck = [
"plexwebsocket"
];

meta = with lib; {
homepage = "https://github.com/jjlawren/python-plexwebsocket/";
description = "Async library to react to events issued over Plex websockets";
license = licenses.mit;
maintainers = with maintainers; [ colemickens ];
};
}
6 changes: 6 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
@@ -2960,6 +2960,12 @@ in {

plaster-pastedeploy = callPackage ../development/python-modules/plaster-pastedeploy {};

plexapi = callPackage ../development/python-modules/plexapi { };

plexauth = callPackage ../development/python-modules/plexauth { };

plexwebsocket = callPackage ../development/python-modules/plexwebsocket { };

plotly = callPackage ../development/python-modules/plotly { };

plyfile = callPackage ../development/python-modules/plyfile { };