From 4b7510ec38f4ea56b1aa7a13cd3e7cdaa210c8e2 Mon Sep 17 00:00:00 2001 From: Justin Stanley Date: Tue, 22 Jan 2019 14:24:45 -0600 Subject: py-whatshap: new package at 0.17 (#10377) * py-whatshap: new package at 0.17 * py-whatshap: remove unused build_args --- .../repos/builtin/packages/py-whatshap/package.py | 31 ++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 var/spack/repos/builtin/packages/py-whatshap/package.py diff --git a/var/spack/repos/builtin/packages/py-whatshap/package.py b/var/spack/repos/builtin/packages/py-whatshap/package.py new file mode 100644 index 0000000000..cc9ceb5d32 --- /dev/null +++ b/var/spack/repos/builtin/packages/py-whatshap/package.py @@ -0,0 +1,31 @@ +# Copyright 2013-2019 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) + +from spack import * + + +class PyWhatshap(PythonPackage): + """WhatsHap is a software for phasing genomic variants using DNA + sequencing reads, also called read-based phasing or haplotype + assembly.""" + + homepage = "https://whatshap.readthedocs.io/en/latest/" + url = "https://bitbucket.org/whatshap/whatshap/get/v0.17.tar.gz" + + version('0.17', sha256='5f342cbd28f5d3e79490754f067aa67e8bb059da1c042d944b9f75663ef6b055') + + depends_on('python@3.4:', type=('build', 'run')) + depends_on('py-setuptools', type='build') + depends_on('py-cython@0.17:', type=('build', 'run')) + depends_on('py-pysam@0.14.0:', type='run') + depends_on('py-xopen', type='run') + depends_on('py-pyvcf', type='run') + depends_on('py-pyfaidx', type='run') + depends_on('py-networkx', type='run') + + def patch(self): + # there is a stray \xe2 somewhere in setup.py, + # explicitly using utf-8 will let the install proceed + filter_file('^"""$', '#coding: utf-8\n"""', 'setup.py') -- cgit v1.2.3-70-g09d2