···3738 [reflector]
39 enable-reflector=${yesNo reflector}
040 '';
4142in
···173 description = ''
174 Number of resource records to be cached per interface. Use 0 to
175 disable caching. Avahi daemon defaults to 4096 if not set.
00000000176 '';
177 };
178
···3738 [reflector]
39 enable-reflector=${yesNo reflector}
40+ ${extraConfig}
41 '';
4243in
···174 description = ''
175 Number of resource records to be cached per interface. Use 0 to
176 disable caching. Avahi daemon defaults to 4096 if not set.
177+ '';
178+ };
179+180+ extraConfig = mkOption {
181+ default = "";
182+ type = types.lines;
183+ description = ''
184+ Extra config to append to avahi-daemon.conf.
185 '';
186 };
187
···1{ stdenv
2, fetchurl
03# Excerpt from glpk's INSTALL file:
4# This feature allows the exact simplex solver to use the GNU MP
5# bignum library. If it is disabled, the exact simplex solver uses the
···28 "--with-gmp"
29 ];
3000000000000000000031 doCheck = true;
3233 meta = {
···43 homepage = http://www.gnu.org/software/glpk/;
44 license = stdenv.lib.licenses.gpl3Plus;
4546- maintainers = with stdenv.lib.maintainers; [ bjg ];
47 platforms = stdenv.lib.platforms.all;
48 };
49}
···1{ stdenv
2, fetchurl
3+, fetchpatch
4# Excerpt from glpk's INSTALL file:
5# This feature allows the exact simplex solver to use the GNU MP
6# bignum library. If it is disabled, the exact simplex solver uses the
···29 "--with-gmp"
30 ];
3132+ patches = [
33+ # GLPK makes it possible to customize its message printing behaviour. Sage
34+ # does that and needs to differentiate between printing regular messages and
35+ # printing errors. Unfortunately there is no way to tell and glpk upstream
36+ # rejected this patch. All it does is set the variable pointing to the error
37+ # file back to NULL before glpk calls abort(). In sage's case, abort won't
38+ # actually be called because the error handler jumps out of the function.
39+ # This shouldn't affect everybody else, since glpk just calls abort()
40+ # immediately afterwards anyways.
41+ # See the sage trac ticket for more details:
42+ # https://trac.sagemath.org/ticket/20710#comment:18
43+ (fetchpatch {
44+ name = "error_recovery.patch";
45+ url = "https://git.sagemath.org/sage.git/plain/build/pkgs/glpk/patches/error_recovery.patch?id=07d6c37d18811e2b377a9689790a7c5e24da16ba";
46+ sha256 = "0z99z9gd31apb6x5n5n26411qzx0ma3s6dnznc4x61x86bhq31qf";
47+ })
48+ ];
49+50 doCheck = true;
5152 meta = {
···62 homepage = http://www.gnu.org/software/glpk/;
63 license = stdenv.lib.licenses.gpl3Plus;
6465+ maintainers = with stdenv.lib.maintainers; [ bjg timokau ];
66 platforms = stdenv.lib.platforms.all;
67 };
68}
···1-{ stdenv, fetchPypi, buildPythonPackage
2, more-itertools, six
3, pytest, pytestcov, portend
4, backports_unittest-mock
···13 sha256 = "8e3ac15e1efffc81425a693e99b3c09d7ea4bf947255d8d4c38e2cf76f3a4d25";
14 };
1516- propagatedBuildInputs = [ more-itertools six ];
0000001718- checkInputs = [ pytest pytestcov portend backports_unittest-mock backports_functools_lru_cache ];
1920# Disable testmon, it needs pytest-testmon, which we do not currently have in nikpkgs,
21# and is only used to skip some tests that are already known to work.
···1+{ stdenv, fetchPypi, buildPythonPackage, fetchpatch
2, more-itertools, six
3, pytest, pytestcov, portend
4, backports_unittest-mock
···13 sha256 = "8e3ac15e1efffc81425a693e99b3c09d7ea4bf947255d8d4c38e2cf76f3a4d25";
14 };
1516+ patches = fetchpatch {
17+ name = "cheroot-fix-setup-python3.patch";
18+ url = "https://git.archlinux.org/svntogit/community.git/plain/trunk/cheroot-fix-setup-python3.patch?h=packages/python-cheroot";
19+ sha256 = "1rlgz0qln536y00mfqlf0i9hz3f53id73wh47cg5q2vcsw1w2bpc";
20+ };
21+22+ propagatedBuildInputs = [ more-itertools six backports_functools_lru_cache ];
2324+ checkInputs = [ pytest pytestcov portend backports_unittest-mock ];
2526# Disable testmon, it needs pytest-testmon, which we do not currently have in nikpkgs,
27# and is only used to skip some tests that are already known to work.
···23buildPythonPackage rec {
4 pname = "pytest-flake8";
5- version = "1.0.1";
67 # although pytest is a runtime dependency, do not add it as
8 # propagatedBuildInputs in order to allow packages depend on another version
···1213 src = fetchPypi {
14 inherit pname version;
15- sha256 = "0s5fdivrmhjf6ybr6m2qb1h8hndv2jh2ir29qv36lhy9b7sc9kg5";
16 };
1718 checkPhase = ''
19- pytest . -k "not test_mtime_caching"
20 '';
21-22- # https://github.com/tholo/pytest-flake8/issues/49
23- doCheck = false;
2425 meta = {
26 description = "py.test plugin for efficiently checking PEP8 compliance";
···23buildPythonPackage rec {
4 pname = "pytest-flake8";
5+ version = "1.0.2";
67 # although pytest is a runtime dependency, do not add it as
8 # propagatedBuildInputs in order to allow packages depend on another version
···1213 src = fetchPypi {
14 inherit pname version;
15+ sha256 = "c740ad6aa19e3958947d2118f70bed218caf1d2097039fb7318573a2a72f89a1";
16 };
1718 checkPhase = ''
19+ pytest .
20 '';
0002122 meta = {
23 description = "py.test plugin for efficiently checking PEP8 compliance";