depot/third_party/nixpkgs/pkgs/development/python-modules/facenet-pytorch/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

33 lines
705 B
Nix

{
buildPythonPackage,
fetchPypi,
pillow,
torchvision,
lib,
}:
buildPythonPackage rec {
pname = "facenet-pytorch";
version = "2.5.3";
src = fetchPypi {
inherit pname version;
hash = "sha256-mMxbQqSPg3wCPrkvKlcc1KxqRmh8XnG56ZtJEIcnPis=";
};
doCheck = false; # pypi version doesn't ship with tests
pythonImportsCheck = [ "facenet_pytorch" ];
propagatedBuildInputs = [
pillow
torchvision
];
meta = {
description = "Pretrained Pytorch face detection (MTCNN) and facial recognition (InceptionResnet) models";
homepage = "https://github.com/timesler/facenet-pytorch";
license = lib.licenses.mit;
maintainers = [ lib.maintainers.lucasew ];
};
}