From 46c2b8a5655408d834c2b24441f0dd5922a8635d Mon Sep 17 00:00:00 2001 From: George Young Date: Thu, 18 Apr 2024 18:08:04 +0100 Subject: [PATCH] xeniumranger: new manual download package @1.7.1 (#42389) * xeniumranger: new manual download package @1.7.1 * Adding license url --------- Co-authored-by: LMS Bioinformatics --- .../builtin/packages/xeniumranger/package.py | 38 +++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 var/spack/repos/builtin/packages/xeniumranger/package.py diff --git a/var/spack/repos/builtin/packages/xeniumranger/package.py b/var/spack/repos/builtin/packages/xeniumranger/package.py new file mode 100644 index 0000000000..d08ceb553d --- /dev/null +++ b/var/spack/repos/builtin/packages/xeniumranger/package.py @@ -0,0 +1,38 @@ +# Copyright 2013-2024 Lawrence Livermore National Security, LLC and other +# Spack Project Developers. See the top-level COPYRIGHT file for details. +# +# SPDX-License-Identifier: (Apache-2.0 OR MIT) + +import os + +from spack.package import * + + +class Xeniumranger(Package): + """The Xenium In Situ software suite is a set of software applications for analyzing and + visualizing in situ gene expression data produced by the Xenium Analyzer. Xenium Ranger + provides flexible off-instrument reanalysis of Xenium In Situ data. + + This package requires the user to accept a license and to download the tarball manually. + Once downloaded, the file should be placed within a manual mirror or within the current + directory. For instructions on making a manual mirror, see + https://spack.readthedocs.io/en/latest/mirrors.html""" + + homepage = "https://www.10xgenomics.com/support/software/xenium-ranger/latest" + manual_download = True + license_url = "support.10xgenomics.com/license" + + version("1.7.1", sha256="3bfa85de75ef473b54a5a6d853649999e446f2f00cc202750bb22af5078965a1") + + # xeniumranger is distributed as precompiled binaries that are not compatible with + # processors without the avx instruction set ... + # https://www.10xgenomics.com/support/software/xenium-ranger/downloads/XR-system-requirements + conflicts("target=:k10") # last AMD processor not to support avx + conflicts("target=:westmere") # last Intel processor not to support avx + conflicts("target=:x86_64_v2") # last generic architecture not to support avx + + def url_for_version(self, version): + return "file://{0}/xeniumranger-{1}.tar.gz".format(os.getcwd(), version) + + def install(self, spec, prefix): + install_tree(".", prefix)