If a Python package does not come with either `format` or `pyproject` we consider it a setuptools build, that calls `setup.py` directly, which is deprecated. This change, as a first step, migrates a large chunk of these packages to set setuptools as their explicit format This is so we can unify the problem space for the next step of the migration.
35 lines
730 B
Nix
35 lines
730 B
Nix
{
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
pillow,
|
|
torchvision,
|
|
lib,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "facenet-pytorch";
|
|
version = "2.5.3";
|
|
format = "setuptools";
|
|
|
|
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 ];
|
|
};
|
|
}
|