Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.0 kB · 53 lines
Nix
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354{ 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 ]; };}