···44let
55 dns = import ./dns.nix { inherit system pkgs; };
66 rbac = import ./rbac.nix { inherit system pkgs; };
77- # TODO kubernetes.e2e should eventually replace kubernetes.rbac when it works
88- # e2e = import ./e2e.nix { inherit system pkgs; };
97in
108{
119 dns-single-node = dns.singlenode.test;
···11-{ buildPythonPackage, fetchFromGitHub, pillow, click, dlib, numpy
22-, face_recognition_models, lib, flake8, pytest, glibcLocales
33-}:
44-55-buildPythonPackage rec {
66- pname = "face_recognition";
77- version = "1.3.0";
88-99- src = fetchFromGitHub {
1010- repo = pname;
1111- owner = "ageitgey";
1212- rev = "d34c622bf42e2c619505a4884017051ecf61ac77";
1313- sha256 = "052878vnh3vbrsvmpgr0bx78k524dlxn47b2xakzbxk7dyjrgcli";
1414- };
1515-1616- postPatch = ''
1717- substituteInPlace setup.py --replace "flake8==2.6.0" "flake8"
1818- '';
1919-2020- propagatedBuildInputs = [ pillow click dlib numpy face_recognition_models ];
2121-2222- # Our dlib is compiled with AVX instructions by default which breaks
2323- # with "Illegal instruction" on some builders due to missing hardware features.
2424- #
2525- # As this makes the build fairly unreliable, it's better to skip the test and to ensure that
2626- # the build is working and after each change to the package, manual testing should be done.
2727- doCheck = false;
2828-2929- # Although tests are disabled by default, checkPhase still exists, so
3030- # maintainers can check the package's functionality locally before modifying it.
3131- checkInputs = [ flake8 pytest glibcLocales ];
3232- checkPhase = ''
3333- LC_ALL="en_US.UTF-8" py.test
3434- '';
3535-3636- meta = with lib; {
3737- license = licenses.mit;
3838- homepage = "https://github.com/ageitgey/face_recognition";
3939- maintainers = with maintainers; [ ];
4040- description = "The world's simplest facial recognition api for Python and the command line";
4141- };
4242-}
···3737# If some requirements are matched by multiple or no Python packages, the
3838# following can be used to choose the correct one
3939PKG_PREFERENCES = {
4040+ "fiblary3": "fiblary3-fork", # https://github.com/home-assistant/core/issues/66466
4041 "ha-av": "av",
4242+ "ha-HAP-python": "hap-python",
4343+ "tensorflow": "tensorflow",
4144 "youtube_dl": "youtube-dl-light",
4242- "tensorflow": "tensorflow",
4343- "fiblary3": "fiblary3-fork", # https://github.com/home-assistant/core/issues/66466
4445}
45464647
···7272 dogpile-core = throw "dogpile-core is no longer maintained, use dogpile-cache instead"; # added 2021-11-20
7373 eebrightbox = throw "eebrightbox is unmaintained upstream and has therefore been removed"; # added 2022-02-03
7474 email_validator = email-validator; # added 2022-06-22
7575+ face_recognition = face-recognition; # added 2022-10-15
7676+ face_recognition_models = face-recognition-models; # added 2022-10-15
7577 fake_factory = throw "fake_factory has been removed because it is unused and deprecated by upstream since 2016."; # added 2022-05-30
7678 faulthandler = throw "faulthandler is built into ${python.executable}"; # added 2021-07-12
7779 flask_sqlalchemy = flask-sqlalchemy; # added 2022-07-20
···126128 prometheus_client = prometheus-client; # added 2021-06-10
127129 prompt_toolkit = prompt-toolkit; # added 2021-07-22
128130 pur = throw "pur has been renamed to pkgs.pur"; # added 2021-11-08
131131+ pushbullet = pushbullet-py; # Added 2022-10-15
129132 pydrive = throw "pydrive is broken and deprecated and has been replaced with pydrive2."; # added 2022-06-01
130133 pyGtkGlade = throw "Glade support for pygtk has been removed"; # added 2022-01-15
131134 pycallgraph = throw "pycallgraph has been removed, it was using setuptools 2to3 translation feature, which has been removed in setuptools 58"; # added 2022-01-18