Something went wrong. Try again.
lol
Something went wrong. Try again.
1.0 kB · 54 lines
Nix
at master
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455{ lib, buildPythonPackage, fetchFromGitHub, rustPlatform, pytest, cargo, rustc,}:
buildPythonPackage rec { pname = "general-sam"; version = "1.0.3"; pyproject = true;
src = fetchFromGitHub { owner = "ModelTC"; repo = "general-sam-py"; rev = "v${version}"; hash = "sha256-++6Z9Ocee4QFN1u0nK/g9uGdmB1UYnfHhhJj74zboCE="; };
cargoDeps = rustPlatform.fetchCargoVendor { inherit pname version src; hash = "sha256-8HHIM1Abz5KxnVphFFNJp6L3D6iPeoB7qVmxy11CUZs="; };
build-system = [ cargo rustPlatform.cargoSetupHook rustPlatform.maturinBuildHook rustc ];
optional-dependencies = { test = [ pytest ]; };
pythonImportsCheck = [ "general_sam" ];
meta = { description = "General suffix automaton implementation"; homepage = "https://github.com/ModelTC/general-sam-py"; license = with lib.licenses; [ asl20 mit ]; maintainers = with lib.maintainers; [ BatteredBunny ]; };}