mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-09 19:13:26 +03:00
53 lines
1 KiB
Nix
53 lines
1 KiB
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
buildPythonPackage,
|
|
rustPlatform,
|
|
cargo,
|
|
rustc,
|
|
unittestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "gb-io";
|
|
version = "0.3.5";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "althonos";
|
|
repo = "gb-io.py";
|
|
rev = "v${version}";
|
|
hash = "sha256-xpyfb5pTV8w7S7g2Tagl5N3jLO+IisP2KXuYN/RDDpY=";
|
|
};
|
|
|
|
cargoDeps = rustPlatform.fetchCargoVendor {
|
|
inherit
|
|
pname
|
|
version
|
|
src
|
|
sourceRoot
|
|
;
|
|
hash = "sha256-97aEuXdq9oEqYJs6sgQU5a0vAMJmWJzu2WGjOqzxZ4c=";
|
|
};
|
|
|
|
sourceRoot = src.name;
|
|
|
|
nativeBuildInputs = [
|
|
cargo
|
|
rustc
|
|
rustPlatform.cargoSetupHook
|
|
];
|
|
|
|
build-system = [ rustPlatform.maturinBuildHook ];
|
|
|
|
nativeCheckInputs = [ unittestCheckHook ];
|
|
|
|
pythonImportsCheck = [ "gb_io" ];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/althonos/gb-io.py";
|
|
description = "Python interface to gb-io, a fast GenBank parser written in Rust";
|
|
license = licenses.mit;
|
|
maintainers = with lib.maintainers; [ dlesl ];
|
|
};
|
|
}
|