summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorLydéric Debusschère <lyderic.de@gmail.com>2023-10-20 14:03:48 +0200
committerGitHub <noreply@github.com>2023-10-20 07:03:48 -0500
commit004d3e4cca022c7b312c6e43b4cf41f85ee5bd71 (patch)
tree8fecc1c38d10bd89512cf379e36aa22215dca3a0 /var
parent25aff66d3475a1092ed039fb435940c5a73ced95 (diff)
downloadspack-004d3e4cca022c7b312c6e43b4cf41f85ee5bd71.tar.gz
spack-004d3e4cca022c7b312c6e43b4cf41f85ee5bd71.tar.bz2
spack-004d3e4cca022c7b312c6e43b4cf41f85ee5bd71.tar.xz
spack-004d3e4cca022c7b312c6e43b4cf41f85ee5bd71.zip
[add] py-fraction: new package (#40554)
Co-authored-by: LydDeb <lyderic.debusschere@eolen.com>
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/py-fraction/package.py22
1 files changed, 22 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-fraction/package.py b/var/spack/repos/builtin/packages/py-fraction/package.py
new file mode 100644
index 0000000000..919d14cadf
--- /dev/null
+++ b/var/spack/repos/builtin/packages/py-fraction/package.py
@@ -0,0 +1,22 @@
+# 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 PyFraction(PythonPackage):
+ """
+ Fraction carries out all the fraction operations including addition, subtraction, multiplicati
+ on, division, reciprocation.
+ """
+
+ homepage = "https://github.com/bradley101/fraction"
+ pypi = "Fraction/Fraction-2.2.0.tar.gz"
+
+ maintainers("LydDeb")
+
+ version("2.2.0", sha256="2c1179f20c8b749622935fe04db1c7f2987f011f2376bdad84c2a39c8e3d0fdb")
+
+ depends_on("py-setuptools", type="build")