blob: 75241018e2b0b78ab8fb526185dff8f77a02a16c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
{
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 ];
};
}
|