From 9dc9790f04858007a9fceea76349e3aa31b27c33 Mon Sep 17 00:00:00 2001 From: Gavin John Date: Fri, 6 Sep 2024 22:13:36 -0700 Subject: [PATCH] graphlan: init at 0-unstable-2024-08-07 --- pkgs/by-name/gr/graphlan/package.nix | 44 ++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 pkgs/by-name/gr/graphlan/package.nix diff --git a/pkgs/by-name/gr/graphlan/package.nix b/pkgs/by-name/gr/graphlan/package.nix new file mode 100644 index 000000000000..1a09c13a91ce --- /dev/null +++ b/pkgs/by-name/gr/graphlan/package.nix @@ -0,0 +1,44 @@ +{ + lib, + python3Packages, + fetchFromGitHub, + nix-update-script, +}: + +python3Packages.buildPythonApplication { + pname = "graphlan"; + version = "0-unstable-2024-08-07"; + pyproject = true; + + src = fetchFromGitHub { + owner = "biobakery"; + repo = "graphlan"; + rev = "dc97f4feb0bb0bf3fa210e2699a86c5e476a647e"; + hash = "sha256-sBVlBu6RSs7dXQbxJrIQHWaDNliurY9UguzNeKj40gY="; + }; + + patchPhase = '' + sed -i 's|biopython==|biopython>=|' setup.py + ''; + + __structuredAttrs = true; + strictDeps = true; + build-system = with python3Packages; [ setuptools ]; + dependencies = with python3Packages; [ + biopython + matplotlib + scipy + ]; + + passthru.updateScript = nix-update-script { extraArgs = [ "--version=branch" ]; }; + + meta = { + description = "Quality control tool for metagenomic and metatranscriptomic sequencing data"; + homepage = "https://github.com/biobakery/graphlan"; + changelog = "https://github.com/biobakery/graphlan/releases"; + license = lib.licenses.mit; + platforms = lib.platforms.all; + maintainers = with lib.maintainers; [ pandapip1 ]; + mainProgram = "graphlan.py"; + }; +}