summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/py-pyusb/package.py
blob: 19cfa6475742f3f6fc4d4ae67c0c640e411816bf (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# 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)

from spack.package import *


class PyPyusb(PythonPackage):
    """Easy USB access from Python."""

    homepage = "https://github.com/pyusb/pyusb"
    pypi = "pyusb/pyusb-1.0.2.tar.gz"

    license("BSD-3-Clause")

    version("1.0.2", sha256="4e9b72cc4a4205ca64fbf1f3fff39a335512166c151ad103e55c8223ac147362")

    depends_on("py-setuptools", type=("build", "run"))
    depends_on("py-setuptools-scm@:1", type="build", when="^py-setuptools@:11")
    depends_on("py-setuptools-scm", type="build")
    depends_on("libusb")