blob: d7f6a2616ef9667cd5ab4810cb52e1545a7d14a3 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
# Copyright 2013-2023 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.package import *
class PyTreehash(PythonPackage):
"""Calculates a SHA256 (or, potentially, any other hashlib supported
function) "tree" hash, as used by e.g. Amazon Glacier."""
homepage = "https://github.com/jdswinbank/treehash"
pypi = "treehash/TreeHash-1.0.2.tar.gz"
version("1.0.2", sha256="fefcadd6a1e8ba2808897d776d5ae8bdae56ec3fe90ed385c1322357269f27a4")
# pip silently replaces distutils with setuptools
depends_on("py-setuptools", type="build")
|