Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
730 B · 34 lines
Nix
1234567891011121314151617181920212223242526272829303132333435{ 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 ]; };}