packages feed

servant-hmac-auth-0.1.5: servant-hmac-auth.cabal

cabal-version:       2.4
name:                servant-hmac-auth
version:             0.1.5
synopsis:            Servant authentication with HMAC
description:         Servant authentication with HMAC. See README.md for usage example.
homepage:            https://github.com/holmusk/servant-hmac-auth
bug-reports:         https://github.com/holmusk/servant-hmac-auth/issues
license:             MIT
license-file:        LICENSE
author:              Holmusk
maintainer:          tech@holmusk.com
copyright:           2018 Holmusk
category:            Web, Cryptography
build-type:          Simple
extra-source-files:  README.md
                   , CHANGELOG.md
tested-with:         GHC == 8.10.7
                     GHC == 9.0.2
                     GHC == 9.2.5
                     GHC == 9.4.4

source-repository head
  type:                git
  location:            https://github.com/holmusk/servant-hmac-auth.git

common common-options
  build-depends:       base >= 4.11.1.0 && < 4.18

  ghc-options:         -Wall
                       -Wincomplete-uni-patterns
                       -Wincomplete-record-updates
                       -Wcompat
                       -Widentities
                       -Wredundant-constraints
                       -Wpartial-fields
                       -fhide-source-paths

  default-language:    Haskell2010
  default-extensions:  BangPatterns
                       ConstraintKinds
                       DataKinds
                       DeriveGeneric
                       DerivingStrategies
                       DerivingVia
                       FlexibleContexts
                       FlexibleInstances
                       GeneralizedNewtypeDeriving
                       InstanceSigs
                       KindSignatures
                       LambdaCase
                       MultiParamTypeClasses
                       OverloadedStrings
                       OverloadedLabels
                       RecordWildCards
                       ScopedTypeVariables
                       TypeApplications
                       TypeFamilies
                       TypeOperators
                       ViewPatterns

library
  import:              common-options
  hs-source-dirs:      src
  exposed-modules:     Servant.Auth.Hmac
                           Servant.Auth.Hmac.Crypto
                           Servant.Auth.Hmac.Client
                           Servant.Auth.Hmac.Server

  build-depends:       base64-bytestring >= 1.0 && <= 2
                     , bytestring ^>= 0.10 || ^>= 0.11
                     , case-insensitive ^>= 1.2
                     , containers >= 0.5.7 && < 0.7
                     , cryptonite >= 0.25 && < 0.31
                     , http-types ^>= 0.12
                     , http-client >= 0.6.4 && < 0.8
                     , memory >= 0.15 && < 0.19
                     , mtl ^>= 2.2.2
                     , servant ^>= 0.18 || ^>= 0.19
                     , servant-client ^>= 0.18 || ^>= 0.19
                     , servant-client-core ^>= 0.18 || ^>= 0.19
                     , servant-server ^>= 0.18 || ^>= 0.19
                     , transformers ^>= 0.5
                     , wai ^>= 3.2.2.1

test-suite servant-hmac-auth-test
  import:              common-options
  type:                exitcode-stdio-1.0
  hs-source-dirs:      test
  main-is:             Spec.hs
  ghc-options:         -threaded -rtsopts -with-rtsopts=-N
  build-depends:       servant-hmac-auth
                     , case-insensitive ^>= 1.2
                     , filepath
                     , hspec
                     , hspec-golden ^>= 0.2
                     , http-client >= 0.6.4 && < 0.8
                     , http-types ^>= 0.12
                     , servant-client ^>= 0.18 || ^>= 0.19
                     , servant-server ^>= 0.18 || ^>= 0.19
                     , text
                     , warp ^>= 3.3
  other-modules:       Servant.Auth.Hmac.CryptoSpec
                       Servant.Auth.HmacSpec
  build-tool-depends:  hspec-discover:hspec-discover == 2.*