py-nptyping, py-typish: add package (#35126)
* py-typish: add package * py-typish: style fix * py-nptyping: new package * py-nptyping, py-typish: review remarks * py-nptying: style * py-nptyping: generic url, avoid pypi for now
This commit is contained in:
parent
b1e6507060
commit
75f1077b4b
24
var/spack/repos/builtin/packages/py-nptyping/package.py
Normal file
24
var/spack/repos/builtin/packages/py-nptyping/package.py
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
# 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 PyNptyping(PythonPackage):
|
||||||
|
"""Type hints for numpy"""
|
||||||
|
|
||||||
|
homepage = "https://github.com/ramonhagenaars/nptyping"
|
||||||
|
url = "https://github.com/ramonhagenaars/nptyping/archive/v2.4.1.tar.gz"
|
||||||
|
# avoid pypi for now: https://github.com/ramonhagenaars/nptyping/issues/98
|
||||||
|
|
||||||
|
version("2.4.1", sha256="1c1b2b08220d271f3e52dbf2bd9190e4dd15b3c04abfcf7a04ec533d3cc9fdab")
|
||||||
|
version("1.4.1", sha256="bbcedb967f8be1302dffdd999eb531b99712c6914078294b4411758d5899b3b6")
|
||||||
|
version("1.0.1", sha256="a00e672bfdaddc99aa6b25dd1ae89d7d58d2b76e8ad099bd69577bac2598589f")
|
||||||
|
|
||||||
|
depends_on("py-setuptools", type="build")
|
||||||
|
depends_on("py-typish@1.7.0:", type=("build", "run"))
|
||||||
|
depends_on("py-numpy@1.21.5", when="^python@:3.7", type=("build", "run"))
|
||||||
|
depends_on("py-numpy@1.20.0:1", when="^python@3.8:", type=("build", "run"))
|
||||||
|
depends_on("py-typing-extensions@4.0.0:4", when="^python@:3.9", type=("build", "run"))
|
18
var/spack/repos/builtin/packages/py-typish/package.py
Normal file
18
var/spack/repos/builtin/packages/py-typish/package.py
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
# 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 PyTypish(PythonPackage):
|
||||||
|
"""Python library for type checking"""
|
||||||
|
|
||||||
|
homepage = "https://github.com/ramonhagenaars/typish"
|
||||||
|
url = "https://github.com/ramonhagenaars/typish/archive/v1.9.2.tar.gz"
|
||||||
|
|
||||||
|
version("1.9.3", sha256="16f8ff022b7009a91529e363d0484465be57797b9cc34a193ca7e3c4c597e4bc")
|
||||||
|
version("1.9.2", sha256="d0cd35aade6f974b2509771ac92aa1a5b4d9efe9c2c34127734539fd28e7145c")
|
||||||
|
|
||||||
|
depends_on("py-setuptools", type="build")
|
Loading…
Reference in New Issue
Block a user