# 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)

from spack import *


class PyFiscalyear(PythonPackage):
    """fiscalyear is a small, lightweight Python module providing helpful
    utilities for managing the fiscal calendar. It is designed as an extension
    of the built-in datetime and calendar modules, adding the ability to query
    the fiscal year and fiscal quarter of a date or datetime object."""

    homepage = "https://github.com/adamjstewart/fiscalyear"
    pypi = "fiscalyear/fiscalyear-0.2.0.tar.gz"
    git      = "https://github.com/adamjstewart/fiscalyear.git"

    maintainers = ['adamjstewart']

    version('master', branch='master')
    version('0.2.0', sha256='f513616aeb03046406c56d7c69cd9e26f6a12963c71c1410cc3d4532a5bfee71')
    version('0.1.0', sha256='3fde4a12eeb72da446beb487e078adf1223a92d130520e589b82d7d1509701a2')

    depends_on('python@2.5:', type=('build', 'run'))
    depends_on('py-setuptools', type='build')

@@ -369,16 +369,21 @@
 alendar.
+%0A%0A   
  It is d
@@ -405,20 +405,16 @@
 xtension
-%0A   
  of the 
@@ -443,16 +443,20 @@
 calendar
+%0A   
  modules
@@ -484,20 +484,16 @@
 to query
-%0A   
  the fis
@@ -500,20 +500,17 @@
 cal year
- and
+,
  fiscal 
@@ -516,16 +516,50 @@
  quarter
+,%0A    fiscal month, and fiscal day
  of a da
@@ -701,21 +701,16 @@
     git 
-     
 = %22https
@@ -828,16 +828,112 @@
 aster')%0A
+    version('0.3.0', sha256='64f97b3a0ab6b2857d09f0016bd3aae37646a454a5c2c66e907fef03ae54a816')%0A
     vers

add v0.3.0 (#20911)