{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  nix-update-script,
  pythonOlder,
  pybind11,
  numpy,
}:
let
  pname = "lanms-neo";
  version = "1.0.2";
in
buildPythonPackage {
  inherit pname version;
  format = "setuptools";

  disabled = pythonOlder "3.8";

  src = fetchFromGitHub {
    owner = "gen-ko";
    repo = pname;
    rev = "6510e19e731a1e105d42b2fbda64de41c169ce2e";
    hash = "sha256-0fs4RNN1ptiir7GfR9B8HK0VqTkk5PbVJxgKiDId3po=";
  };

  propagatedBuildInputs = [
    pybind11
    numpy
  ];

  passthru.updateScript = nix-update-script { };

  meta = with lib; {
    description = "Standalone module for Locality-Aware NMS";
    homepage = "https://github.com/gen-ko/lanms-neo";
    license = licenses.asl20;
    maintainers = with maintainers; [ happysalada ];
  };
}
