-
-
Notifications
You must be signed in to change notification settings - Fork 14.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/master' into HEAD
- Loading branch information
Showing
43 changed files
with
801 additions
and
528 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -116,6 +116,7 @@ | |
christopherpoole = "Christopher Mark Poole <[email protected]>"; | ||
ciil = "Simon Lackerbauer <[email protected]>"; | ||
ckampka = "Christian Kampka <[email protected]>"; | ||
ckauhaus = "Christian Kauhaus <[email protected]>"; | ||
cko = "Christine Koppelt <[email protected]>"; | ||
cleverca22 = "Michael Bishop <[email protected]>"; | ||
cmcdragonkai = "Roger Qiu <[email protected]>"; | ||
|
@@ -135,6 +136,7 @@ | |
cryptix = "Henry Bubert <[email protected]>"; | ||
CrystalGamma = "Jona Stubbe <[email protected]>"; | ||
cstrahan = "Charles Strahan <[email protected]>"; | ||
csingley = "Christopher Singley <[email protected]>"; | ||
cwoac = "Oliver Matthews <[email protected]>"; | ||
DamienCassou = "Damien Cassou <[email protected]>"; | ||
danbst = "Danylo Hlynskyi <[email protected]>"; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
{ config, pkgs, lib, ... }: | ||
|
||
with lib; | ||
|
||
let | ||
cfg = config.services.plexpy; | ||
in | ||
{ | ||
options = { | ||
services.plexpy = { | ||
enable = mkEnableOption "PlexPy Plex Monitor"; | ||
|
||
dataDir = mkOption { | ||
type = types.str; | ||
default = "/var/lib/plexpy"; | ||
description = "The directory where PlexPy stores its data files."; | ||
}; | ||
|
||
configFile = mkOption { | ||
type = types.str; | ||
default = "/var/lib/plexpy/config.ini"; | ||
description = "The location of PlexPy's config file."; | ||
}; | ||
|
||
port = mkOption { | ||
type = types.int; | ||
default = 8181; | ||
description = "TCP port where PlexPy listens."; | ||
}; | ||
|
||
user = mkOption { | ||
type = types.str; | ||
default = "plexpy"; | ||
description = "User account under which PlexPy runs."; | ||
}; | ||
|
||
group = mkOption { | ||
type = types.str; | ||
default = "nogroup"; | ||
description = "Group under which PlexPy runs."; | ||
}; | ||
|
||
package = mkOption { | ||
type = types.package; | ||
default = pkgs.plexpy; | ||
defaultText = "pkgs.plexpy"; | ||
description = '' | ||
The PlexPy package to use. | ||
''; | ||
}; | ||
}; | ||
}; | ||
|
||
config = mkIf cfg.enable { | ||
systemd.services.plexpy = { | ||
description = "PlexPy Plex Monitor"; | ||
after = [ "network.target" ]; | ||
wantedBy = [ "multi-user.target" ]; | ||
preStart = '' | ||
test -d "${cfg.dataDir}" || { | ||
echo "Creating initial PlexPy data directory in \"${cfg.dataDir}\"." | ||
mkdir -p "${cfg.dataDir}" | ||
chown ${cfg.user}:${cfg.group} "${cfg.dataDir}" | ||
} | ||
''; | ||
serviceConfig = { | ||
Type = "simple"; | ||
User = cfg.user; | ||
Group = cfg.group; | ||
PermissionsStartOnly = "true"; | ||
GuessMainPID = "false"; | ||
ExecStart = "${cfg.package}/bin/plexpy --datadir ${cfg.dataDir} --config ${cfg.configFile} --port ${toString cfg.port} --pidfile ${cfg.dataDir}/plexpy.pid --nolaunch"; | ||
Restart = "on-failure"; | ||
}; | ||
}; | ||
|
||
users.extraUsers = mkIf (cfg.user == "plexpy") { | ||
plexpy = { group = cfg.group; uid = config.ids.uids.plexpy; }; | ||
}; | ||
}; | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,6 @@ | |
let | ||
|
||
kdeLocale4 = import ./kde-locale-4.nix; | ||
kdeLocale5 = import ./kde-locale-5.nix; | ||
|
||
in | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{ stdenv, fetchPypi, buildPythonPackage, pycodestyle }: | ||
|
||
buildPythonPackage rec { | ||
pname = "autopep8"; | ||
version = "1.3.3"; | ||
name = "${pname}-${version}"; | ||
|
||
src = fetchPypi { | ||
inherit pname version; | ||
sha256 = "0c1gl648g2xnz3j0rsp71ld4i32zlglmqjvqf4q8r08jp3zpny7z"; | ||
}; | ||
|
||
propagatedBuildInputs = [ pycodestyle ]; | ||
|
||
# One test fails: | ||
# FAIL: test_recursive_should_not_crash_on_unicode_filename (test.test_autopep8.CommandLineTests) | ||
doCheck = false; | ||
|
||
meta = with stdenv.lib; { | ||
description = "A tool that automatically formats Python code to conform to the PEP 8 style guide"; | ||
homepage = https://pypi.python.org/pypi/autopep8/; | ||
license = licenses.mit; | ||
platforms = platforms.all; | ||
maintainers = with maintainers; [ bjornfor ]; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ stdenv, fetchurl, buildPythonPackage, pep8, nose, unittest2, docutils | ||
, pillow, webcolors, funcparserlib | ||
}: | ||
|
||
buildPythonPackage rec { | ||
name = "blockdiag-${version}"; | ||
version = "1.5.3"; | ||
|
||
src = fetchurl { | ||
url = "https://bitbucket.org/blockdiag/blockdiag/get/${version}.tar.bz2"; | ||
sha256 = "0r0qbmv0ijnqidsgm2rqs162y9aixmnkmzgnzgk52hiy7ydm4k8f"; | ||
}; | ||
|
||
buildInputs = [ pep8 nose unittest2 docutils ]; | ||
|
||
propagatedBuildInputs = [ pillow webcolors funcparserlib ]; | ||
|
||
# One test fails: | ||
# ... | ||
# FAIL: test_auto_font_detection (blockdiag.tests.test_boot_params.TestBootParams) | ||
doCheck = false; | ||
|
||
meta = with stdenv.lib; { | ||
description = "Generate block-diagram image from spec-text file (similar to Graphviz)"; | ||
homepage = http://blockdiag.com/; | ||
license = licenses.asl20; | ||
platforms = platforms.unix; | ||
maintainers = with maintainers; [ bjornfor ]; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ stdenv, buildPythonPackage, fetchurl, pygments, greenlet, curtsies, urwid, requests, mock }: | ||
|
||
buildPythonPackage rec { | ||
pname = "bpython"; | ||
version = "0.17"; | ||
name = "${pname}-${version}"; | ||
|
||
# 0.17 is still missing on PyPI, https://github.com/bpython/bpython/issues/706 | ||
src = fetchurl { | ||
url = "https://bpython-interpreter.org/releases/${pname}-${version}.tar.gz"; | ||
sha256 = "13fyyx06645ikvmj9zmkixr12kzk1c3a3f9s9i2rvaczjycn82lz"; | ||
}; | ||
|
||
propagatedBuildInputs = [ curtsies greenlet pygments requests urwid ]; | ||
|
||
checkInputs = [ mock ]; | ||
|
||
# tests fail: https://github.com/bpython/bpython/issues/712 | ||
doCheck = false; | ||
|
||
meta = with stdenv.lib; { | ||
description = "A fancy curses interface to the Python interactive interpreter"; | ||
homepage = "https://bpython-interpreter.org/"; | ||
license = licenses.mit; | ||
maintainers = with maintainers; [ flokli ]; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ stdenv, buildPythonPackage, fetchFromGitHub, six, pythonOlder }: | ||
|
||
buildPythonPackage rec { | ||
name = "construct-${version}"; | ||
version = "2.8.16"; | ||
|
||
src = fetchFromGitHub { | ||
owner = "construct"; | ||
repo = "construct"; | ||
rev = "v${version}"; | ||
sha256 = "0lzz1dy419n254qccch7yx4nkpwd0fsyjhnsnaf6ysgwzqxxv63j"; | ||
}; | ||
|
||
propagatedBuildInputs = [ six ]; | ||
|
||
# Tests fail with the following error on Python 3.5+ | ||
# TypeError: not all arguments converted during string formatting | ||
doCheck = pythonOlder "3.5"; | ||
|
||
meta = with stdenv.lib; { | ||
description = "Powerful declarative parser (and builder) for binary data"; | ||
homepage = http://construct.readthedocs.org/; | ||
license = licenses.mit; | ||
platforms = platforms.linux; | ||
maintainers = with maintainers; [ bjornfor ]; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ stdenv, buildPythonPackage, fetchPypi, blessings, mock, nose, pyte, pytest, wcwidth }: | ||
|
||
buildPythonPackage rec { | ||
pname = "curtsies"; | ||
version = "0.2.11"; | ||
name = "${pname}-${version}"; | ||
|
||
src = fetchPypi { | ||
inherit pname version; | ||
sha256 = "1vljmw3sy6lrqahhpyg4gk13mzcx3mwhvg8s41698ms3cpgkjipc"; | ||
}; | ||
|
||
propagatedBuildInputs = [ blessings wcwidth pyte ]; | ||
|
||
checkInputs = [ nose mock pytest ]; | ||
|
||
checkPhase = '' | ||
py.test | ||
''; | ||
|
||
meta = with stdenv.lib; { | ||
description = "Curses-like terminal wrapper, with colored strings!"; | ||
homepage = https://pypi.python.org/pypi/curtsies; | ||
license = licenses.mit; | ||
maintainers = with maintainers; [ flokli ]; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ stdenv, fetchPypi, buildPythonPackage }: | ||
|
||
buildPythonPackage rec { | ||
pname = "dpkt"; | ||
version = "1.9.1"; | ||
name = "${pname}-${version}"; | ||
|
||
src = fetchPypi { | ||
inherit pname version; | ||
sha256 = "0rr9ygczhxkfb61778jx0cxs0sq46zwlcj5l3wn6xmd3iy3yx9y6"; | ||
}; | ||
|
||
meta = with stdenv.lib; { | ||
description = "Fast, simple packet creation / parsing, with definitions for the basic TCP/IP protocols"; | ||
homepage = https://code.google.com/p/dpkt/; | ||
license = licenses.bsd3; | ||
maintainers = with maintainers; [ bjornfor ]; | ||
platforms = platforms.all; | ||
}; | ||
} |
Oops, something went wrong.