summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/py-fallocate/package.py
blob: dc60b0cd29cf8271ed81b9be72d331f9dfca3350 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# 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 PyFallocate(PythonPackage):
    """Module to expose posix_fallocate(3), posix_fadvise(3) and fallocate(2)"""

    homepage = "https://github.com/trbs/fallocate"
    pypi = "fallocate/fallocate-1.6.4.tar.gz"

    license("PSF-2.0")

    version("1.6.4", sha256="85ebeb2786761fbe80d88c52590a610bd3425fc89e188c208a3f261a5bd6acb3")

    # pip silently replaces distutils with setuptools
    depends_on("py-setuptools", type="build")