# Copyright 2013-2021 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)


class PySecretstorage(PythonPackage):
    """Python bindings to FreeDesktop.org Secret Service API."""

    homepage = "https://github.com/mitya57/secretstorage"
    pypi = "SecretStorage/SecretStorage-3.1.2.tar.gz"

    version('3.1.2', sha256='15da8a989b65498e29be338b3b279965f1b8f09b9668bd8010da183024c8bff6')

    depends_on('python@3.5:', type=('build', 'run'))
    depends_on('py-setuptools', type='build')
    depends_on('py-cryptography', type=('build', 'run'))
    depends_on('py-jeepney@0.4.2:', type=('build', 'run'))

@@ -191,16 +191,37 @@
 R MIT)%0A%0A
+from spack import *%0A%0A
 %0Aclass P
@@ -430,16 +430,112 @@
 ar.gz%22%0A%0A
+    version('3.3.1', sha256='fd666c51a6bf200643495a04abb261f83229dcb6fd8472ec393df7ffc8b6f195')%0A
     vers
@@ -623,16 +623,83 @@
 bff6')%0A%0A
+    depends_on('python@3.6:', when='@3.3:', type=('build', 'run'))%0A
     depe
@@ -719,16 +719,30 @@
 n@3.5:',
+ when='@:3.2',
  type=('
@@ -786,16 +786,22 @@
 tuptools
+@30.3:
 ', type=
@@ -840,16 +840,177 @@
 tography
+@2.0:', when='@3.2:', type=('build', 'run'))%0A    depends_on('py-cryptography', when='@:3.1', type=('build', 'run'))%0A    depends_on('py-jeepney@0.6:', when='@3.3:
 ', type=
@@ -1058,24 +1058,38 @@
 ney@0.4.2:',
+ when='@:3.2',
  type=('buil

add 3.3.1 (#24705)