diff --git a/pkgs/development/python-modules/face-recognition/models.nix b/pkgs/development/python-modules/face-recognition/models.nix new file mode 100644 index 000000000000..9df1ac060589 --- /dev/null +++ b/pkgs/development/python-modules/face-recognition/models.nix @@ -0,0 +1,35 @@ +{ buildPythonPackage +, lib +, fetchPypi +, setuptools +}: + +buildPythonPackage rec { + pname = "face-recognition-models"; + version = "0.3.0"; + format = "setuptools"; + + src = fetchPypi { + pname = "face_recognition_models"; + inherit version; + hash = "sha256-t5vSAKiMh8mp1EbJkK5xxaYm0fNzAXTm1XAVf/HYls8="; + }; + + propagatedBuildInputs = [ + setuptools + ]; + + # no tests + doCheck = false; + + pythonImportsCheck = [ + "face_recognition_models" + ]; + + meta = with lib; { + homepage = "https://github.com/ageitgey/face_recognition_models"; + license = licenses.cc0; + maintainers = with maintainers; [ ]; + description = "Trained models for the face_recognition python library"; + }; +} diff --git a/pkgs/development/python-modules/face_recognition_models/default.nix b/pkgs/development/python-modules/face_recognition_models/default.nix deleted file mode 100644 index ccf20f494998..000000000000 --- a/pkgs/development/python-modules/face_recognition_models/default.nix +++ /dev/null @@ -1,23 +0,0 @@ -{ buildPythonPackage, lib, fetchPypi, setuptools }: - -buildPythonPackage rec { - pname = "face_recognition_models"; - version = "0.3.0"; - - src = fetchPypi { - inherit pname version; - sha256 = "1kwnv3qpy5bhspk780bkyg8jd9n5f6p91ja6sjlwk1wcm00d56xp"; - }; - - # no module named `tests` as no tests are available - doCheck = false; - - propagatedBuildInputs = [ setuptools ]; - - meta = with lib; { - homepage = "https://github.com/ageitgey/face_recognition_models"; - license = licenses.cc0; - maintainers = with maintainers; [ ]; - description = "Trained models for the face_recognition python library"; - }; -} diff --git a/pkgs/top-level/python-aliases.nix b/pkgs/top-level/python-aliases.nix index 8c40e28e2201..1fc0f9278735 100644 --- a/pkgs/top-level/python-aliases.nix +++ b/pkgs/top-level/python-aliases.nix @@ -69,6 +69,7 @@ mapAliases ({ eebrightbox = throw "eebrightbox is unmaintained upstream and has therefore been removed"; # added 2022-02-03 email_validator = email-validator; # added 2022-06-22 face_recognition = face-recognition; # added 2022-10-15 + face_recognition_models = face-recognition-models; # added 2022-10-15 fake_factory = throw "fake_factory has been removed because it is unused and deprecated by upstream since 2016."; # added 2022-05-30 flask_sqlalchemy = flask-sqlalchemy; # added 2022-07-20 flask_testing = flask-testing; # added 2022-04-25 diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 8e67c8b6dc1b..12ea8bdba179 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -3219,7 +3219,7 @@ in { face-recognition = callPackage ../development/python-modules/face-recognition { }; - face_recognition_models = callPackage ../development/python-modules/face_recognition_models { }; + face-recognition-models = callPackage ../development/python-modules/face-recognition/models.nix { }; factory_boy = callPackage ../development/python-modules/factory_boy { };