Skip to content
This repository was archived by the owner on Feb 26, 2025. It is now read-only.

Commit d9b0c4e

Browse files
Add py-nanoplot and py-nanostat (spack#41190)
* Add py-nanoplot and py-nanostat * Add myself as spack package maintainer * Remove python version requirement * Remove python dependency * Apply suggestions from code review Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com> * Update package.py: remove python dependency * Set dependency types * Update py-nanomath package.py * Update py-nanoplot package.py * Update py-nanostat package.py * Add missing py-python-deprecated dependency * Make kaleido a source package * Fix py-nanoget deps * Kaleido lint * Nanoget lint * Nanomath lint * Nanoplot lint * Nanostat lint * Another kaleido lint I missed * py-nanoplot missed lint * py-nanostat missed lint * py-kaleido even more missed lint * The linter really can't make up its mind * The linter REALLY can't make up its mind * Add py-python-deprecated package --------- Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
1 parent 492cad9 commit d9b0c4e

File tree

6 files changed

+136
-0
lines changed

6 files changed

+136
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Copyright 2013-2023 Lawrence Livermore National Security, LLC and other
2+
# Spack Project Developers. See the top-level COPYRIGHT file for details.
3+
#
4+
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
5+
6+
from spack.package import *
7+
8+
9+
class PyKaleido(PythonPackage):
10+
"""Static image export for web-based visualization libraries with zero dependencies"""
11+
12+
homepage = "https://github.com/wdecoster/nanostat"
13+
url = "https://github.com/plotly/Kaleido/archive/refs/tags/v0.2.1.tar.gz"
14+
15+
maintainers("Pandapip1")
16+
17+
version("0.2.1", sha256="fdb673a9759835d4f455990fc1ff8919bd100a0d34f2d3de7bd5eeb2162b57ec")
18+
19+
depends_on("py-setuptools", type="build")
20+
21+
build_directory = join_path("repos", "kaleido", "py")
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Copyright 2013-2023 Lawrence Livermore National Security, LLC and other
2+
# Spack Project Developers. See the top-level COPYRIGHT file for details.
3+
#
4+
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
5+
6+
from spack.package import *
7+
8+
9+
class PyNanoget(PythonPackage):
10+
"""Functions to extract information from Oxford Nanopore sequencing data and alignments"""
11+
12+
homepage = "https://github.com/wdecoster/nanoget"
13+
pypi = "nanoget/nanoget-1.19.3.tar.gz"
14+
15+
maintainers("Pandapip1")
16+
17+
version("1.19.3", sha256="da981810edb1cbe42cbbfbe5fcf753f29bf5555204cd51256b28a284a036a71b")
18+
19+
depends_on("py-setuptools", type=("build",))
20+
depends_on("py-pandas@2.0.0:", type=("build", "run"))
21+
depends_on("py-numpy", type=("build", "run"))
22+
depends_on("py-biopython", type=("build", "run"))
23+
depends_on("py-pysam@0.10.0.1:", type=("build", "run"))
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Copyright 2013-2023 Lawrence Livermore National Security, LLC and other
2+
# Spack Project Developers. See the top-level COPYRIGHT file for details.
3+
#
4+
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
5+
6+
from spack.package import *
7+
8+
9+
class PyNanomath(PythonPackage):
10+
"""A few simple math function for other Oxford Nanopore processing scripts"""
11+
12+
homepage = "https://github.com/wdecoster/nanomath"
13+
pypi = "nanomath/nanomath-1.3.0.tar.gz"
14+
15+
maintainers("Pandapip1")
16+
17+
version("1.3.0", sha256="c35a024b10b34dd8f539cefed1fd69e0a46d18037ca48bed63c7941c67ae028e")
18+
19+
depends_on("py-setuptools", type=("build",))
20+
depends_on("py-python-deprecated", type=("build", "run"))
21+
depends_on("py-pandas", type=("build", "run"))
22+
depends_on("py-numpy@1.9:", type=("build", "run"))
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Copyright 2013-2023 Lawrence Livermore National Security, LLC and other
2+
# Spack Project Developers. See the top-level COPYRIGHT file for details.
3+
#
4+
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
5+
6+
from spack.package import *
7+
8+
9+
class PyNanoplot(PythonPackage):
10+
"""Plotting scripts for long read sequencing data"""
11+
12+
homepage = "https://github.com/wdecoster/NanoPlot"
13+
pypi = "NanoPlot/NanoPlot-1.42.0.tar.gz"
14+
15+
maintainers("Pandapip1")
16+
17+
version("1.42.0", sha256="0f8fd2cffd33a346b3306716058c6cb4091c931e8ab502f10b17a28749e8b6d9")
18+
19+
depends_on("py-setuptools", type=("build",))
20+
depends_on("py-biopython", type=("build", "run"))
21+
depends_on("py-pysam@0.10.0.1:", type=("build", "run"))
22+
depends_on("py-pandas@1.1.0:", type=("build", "run"))
23+
depends_on("py-numpy@1.16.5:", type=("build", "run"))
24+
depends_on("py-scipy", type=("build", "run"))
25+
depends_on("py-python-dateutil", type=("build", "run"))
26+
depends_on("py-nanoget@1.19.1:", type=("build", "run"))
27+
depends_on("py-nanomath@1.0.0:", type=("build", "run"))
28+
depends_on("py-plotly@5.4.0:", type=("build", "run"))
29+
depends_on("py-pyarrow", type=("build", "run"))
30+
depends_on("py-kaleido", type=("build", "run"))
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Copyright 2013-2023 Lawrence Livermore National Security, LLC and other
2+
# Spack Project Developers. See the top-level COPYRIGHT file for details.
3+
#
4+
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
5+
6+
from spack.package import *
7+
8+
9+
class PyNanostat(PythonPackage):
10+
"""Calculate statistics for Oxford Nanopore sequencing data and alignments"""
11+
12+
homepage = "https://github.com/wdecoster/nanostat"
13+
pypi = "NanoStat/NanoStat-1.6.0.tar.gz"
14+
15+
maintainers("Pandapip1")
16+
17+
version("1.6.0", sha256="e45fa8d1ab49bdaed17596c26c0af148b44e4af46238391a8bb7a1b4cc940079")
18+
19+
depends_on("py-setuptools", type=("build",))
20+
depends_on("py-nanoget@1.13.2:", type=("build", "run"))
21+
depends_on("py-nanomath@1.0.0:", type=("build", "run"))
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Copyright 2013-2023 Lawrence Livermore National Security, LLC and other
2+
# Spack Project Developers. See the top-level COPYRIGHT file for details.
3+
#
4+
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
5+
6+
from spack.package import *
7+
8+
9+
class PyPythonDeprecated(PythonPackage):
10+
"""Python @deprecated decorator to deprecate old python classes, functions or methods."""
11+
12+
homepage = "https://github.com/vrcmarcos/python-deprecated"
13+
pypi = "Python-Deprecated/Python-Deprecated-1.1.0.tar.gz"
14+
15+
maintainers("Pandapip1")
16+
17+
version("1.1.0", sha256="a242b3c1721f97912330b12cd5529abfa5b3876084a6c60a2c683a87d4b0dd6f")
18+
19+
depends_on("py-setuptools", type=("build",))

0 commit comments

Comments
 (0)