python3Packages.face-recognition-models: rename and overhaul

- normalize name (PEP503)
- set explicit format
- reformat
This commit is contained in:
Martin Weinelt 2022-10-15 02:18:25 +02:00
parent 71b0473e22
commit 4f7b11fd3d
No known key found for this signature in database
GPG Key ID: 87C1E9888F856759
4 changed files with 37 additions and 24 deletions

View File

@ -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";
};
}

View File

@ -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";
};
}

View File

@ -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

View File

@ -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 { };