Files
nixpkgs/pkgs/development/python-modules/gb-io/default.nix
T
2025-12-10 18:42:31 +01:00

54 lines
1.0 KiB
Nix

{
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 ];
};
}