From 43143b134a761b72fce991a563decec5963aae8a Mon Sep 17 00:00:00 2001
From: Jonathon Anderson <17242663+blue42u@users.noreply.github.com>
Date: Fri, 30 Jun 2023 14:42:57 -0700
Subject: New package: pipx (#38658)

* py-userpath: new package

* pipx: new package

* Update var/spack/repos/builtin/packages/pipx/package.py

Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>

* pipx: Remove incorrect dependency on py-platformdirs

* Update var/spack/repos/builtin/packages/pipx/package.py

Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>

* py-userpath: Remove version requirements to match upstream

---------

Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
---
 var/spack/repos/builtin/packages/pipx/package.py   | 25 ++++++++++++++++++++++
 .../repos/builtin/packages/py-userpath/package.py  | 21 ++++++++++++++++++
 2 files changed, 46 insertions(+)
 create mode 100644 var/spack/repos/builtin/packages/pipx/package.py
 create mode 100644 var/spack/repos/builtin/packages/py-userpath/package.py

(limited to 'var')

diff --git a/var/spack/repos/builtin/packages/pipx/package.py b/var/spack/repos/builtin/packages/pipx/package.py
new file mode 100644
index 0000000000..c1dab8ed89
--- /dev/null
+++ b/var/spack/repos/builtin/packages/pipx/package.py
@@ -0,0 +1,25 @@
+# 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 Pipx(PythonPackage):
+    """pipx is a tool to install and run Python applications in isolated environments"""
+
+    homepage = "https://pypa.github.io/pipx/"
+    pypi = "pipx/pipx-1.2.0.tar.gz"
+
+    version("1.2.0", sha256="d1908041d24d525cafebeb177efb686133d719499cb55c54f596c95add579286")
+
+    depends_on("python@3.7:", type=("build", "run"))
+
+    depends_on("py-hatchling@0.15.0:", type="build")
+
+    depends_on("py-argcomplete@1.9.4:", type=("build", "run"))
+    depends_on("py-colorama@0.4.4:", type=("build", "run"), when="platform=windows")
+    depends_on("py-importlib-metadata@3.3.0:", type=("build", "run"), when="^python@3.7")
+    depends_on("py-packaging@20.0:", type=("build", "run"))
+    depends_on("py-userpath@1.6.0:", type=("build", "run"))
diff --git a/var/spack/repos/builtin/packages/py-userpath/package.py b/var/spack/repos/builtin/packages/py-userpath/package.py
new file mode 100644
index 0000000000..ac7225d784
--- /dev/null
+++ b/var/spack/repos/builtin/packages/py-userpath/package.py
@@ -0,0 +1,21 @@
+# 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 PyUserpath(PythonPackage):
+    """Cross-platform tool for adding locations to the user PATH."""
+
+    homepage = "https://github.com/ofek/userpath"
+    pypi = "userpath/userpath-1.8.0.tar.gz"
+
+    version("1.8.0", sha256="04233d2fcfe5cff911c1e4fb7189755640e1524ff87a4b82ab9d6b875fee5787")
+
+    depends_on("python@3.7:", type=("build", "run"))
+
+    depends_on("py-hatchling", type="build")
+
+    depends_on("py-click", type=("build", "run"))
-- 
cgit v1.2.3-70-g09d2