{ lib, fetchFromGitHub, buildPythonPackage, rustPlatform, cargo, rustc, unittestCheckHook, }: buildPythonPackage rec { pname = "gb-io"; version = "0.3.8"; pyproject = true; src = fetchFromGitHub { owner = "althonos"; repo = "gb-io.py"; rev = "v${version}"; hash = "sha256-ArJTK6YcuyExIMBUYBxpr7TpKeVMF6Nk4ObAZLuOgJA="; }; cargoDeps = rustPlatform.fetchCargoVendor { inherit pname version src sourceRoot ; hash = "sha256-3mgvT8b4tpoUScs5yk6IbGBUJ/czu3XSdFXhfT/c5S8="; }; sourceRoot = src.name; nativeBuildInputs = [ cargo rustc rustPlatform.cargoSetupHook ]; build-system = [ rustPlatform.maturinBuildHook ]; nativeCheckInputs = [ unittestCheckHook ]; pythonImportsCheck = [ "gb_io" ]; meta = { homepage = "https://github.com/althonos/gb-io.py"; description = "Python interface to gb-io, a fast GenBank parser written in Rust"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ dlesl ]; }; }