Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
775 B · 46 lines
Nix
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647{ lib, buildPythonPackage, faiss-build, numpy, packaging, setuptools, pip, wheel,}:
buildPythonPackage { inherit (faiss-build) pname version; pyproject = true;
src = "${lib.getOutput "dist" faiss-build}";
postPatch = '' mkdir dist mv *.whl dist/ '';
build-system = [ setuptools pip wheel ];
dependencies = [ numpy packaging ];
# E.g. cuda libraries; needed because reference scanning # can't see inside the wheels inherit (faiss-build) buildInputs;
dontBuild = true;
pythonImportsCheck = [ "faiss" ];
meta = lib.pipe (faiss-build.meta or { }) [ (lib.flip builtins.removeAttrs [ "mainProgram" ]) (m: m // { description = "Bindings for faiss, the similarity search library"; }) ];}