packages feed

fernet-0.1.0.0: fernet.cabal

name:                fernet
version:             0.1.0.0
synopsis:            Generate and verify HMAC-based authentication tokens.
description:         Originally designed for use within OpenStack clusters,
                     /Fernet/ is intended to be fast and light-weight, with
                     non-persistent tokens. Fernet tokens are signed with a
                     SHA256 HMAC and their contents encrypted with AES128
                     in CBC mode.
homepage:            https://github.com/rvl/fernet-hs
license:             LGPL-3
license-file:        LICENSE
author:              Rodney Lorrimar
maintainer:          dev@rodney.id.au
copyright:           2017 Rodney Lorrimar
category:            Web, Authentication
build-type:          Simple
extra-source-files:  README.md, ChangeLog.md
cabal-version:       >=1.10
stability:           experimental
bug-reports:         https://github.com/rvl/fernet/issues

flag cli
  description: Build the example application
  default: True

library
  exposed-modules:     Network.Fernet
  other-modules:       Network.Fernet.Base64
                     , Network.Fernet.Crypto
                     , Network.Fernet.Key
                     , Network.Fernet.Token
  build-depends:       base >=4.9 && <4.10
                     , binary               >= 0.8.3.0 && < 0.10
                     , byteable             >= 0.1.1  && < 0.2
                     , bytestring           >= 0.10.8 && < 0.11
                     , cryptonite           >= 0.21   && < 0.23
                     , memory               >= 0.14.1 && < 0.15
                     , time                 >= 1.6.0  && < 1.7
  hs-source-dirs:      src
  default-language:    Haskell2010
  default-extensions:  OverloadedStrings
                     , RecordWildCards

executable fernet
  if flag(cli)
    buildable: True
  else
    buildable: False

  hs-source-dirs:      cli
  main-is:             FernetMain.hs
  ghc-options:         -threaded -rtsopts -with-rtsopts=-N
  build-depends:       base
                     , fernet
                     , bytestring
                     , optparse-applicative >= 0.12 && < 0.15
                     , memory
                     , time
                     , unix                 >= 2.7.2.1 && < 2.8
  default-language:    Haskell2010
  default-extensions:  OverloadedStrings


test-suite fernet-test
  type:                exitcode-stdio-1.0
  hs-source-dirs:      test
  main-is:             Main.hs
  other-modules:       Network.Fernet.Tests
  build-depends:       HUnit
                     , QuickCheck
                     , aeson                >= 1.0.2  && < 1.1
                     , base
                     , bytestring
                     , fernet
                     , memory >= 0.14.1
                     , tasty
                     , tasty-golden
                     , tasty-hunit
                     , tasty-quickcheck
                     , time
  ghc-options:         -threaded -rtsopts -with-rtsopts=-N
  default-language:    Haskell2010
  default-extensions:  OverloadedStrings
                     , RecordWildCards

source-repository head
  type:     git
  location: https://github.com/rvl/fernet-hs