Added package py-nanotime (#21287)

This commit is contained in:
bryanherman 2021-01-26 12:22:19 -05:00 committed by GitHub
parent a678c1966f
commit 6b16d61a80
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -0,0 +1,21 @@
# 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 PyNanotime(PythonPackage):
"""The nanotime module provides a time object that keeps time as the
number of nanoseconds since the UNIX epoch. In other words, it is
a 64bit UNIX timestamp with nanosecond precision.
"""
homepage = "https://github.com/jbenet/nanotime"
pypi = "nanotime/nanotime-0.5.2.tar.gz"
version('0.5.2', sha256='c7cc231fc5f6db401b448d7ab51c96d0a4733f4b69fabe569a576f89ffdf966b')
depends_on('py-setuptools', type='build')