packages feed

bdcs-api-0.1.0: bdcs-api.cabal

name:                   bdcs-api
version:                0.1.0
synopsis:               BDCS API Server
description:            This module provides an API server and library component that works with the BDCS
                        project.  It provides a web interface for clients to create, edit, and delete
                        blueprints; to list the contents of the content store; to request composes from
                        existing blueprints; and to fetch the results of composes.
homepage:               https://github.com/weldr/bdcs-api
license:                GPL-3
license-file:           LICENSE
author:                 Brian C. Lane
maintainer:             bcl@redhat.com
category:               Network
build-type:             Simple
cabal-version:          >= 1.10

extra-source-files:     ChangeLog.md,
                        Dockerfile,
                        Dockerfile.build,
                        entrypoint.sh,
                        Makefile,
                        README.tests,
                        tests/*.py,
                        tests/*.hs,
                        tests/mddb/*.db,
                        tests/mddb/bdcs-fake-bart-1.3.1-12.x86_64.rpm,
                        tests/mddb/bdcs-fake-homer-2.0.1-4.x86_64.rpm,
                        tests/mddb/bdcs-fake-lisa-1.0.0-1.x86_64.rpm,
                        tests/mddb/bdcs-fake-sax-3.8.1-1.x86_64.rpm,
                        tests/recipes/*.toml

source-repository       head
    type:               git
    location:           https://github.com/weldr/bdcs-api

library
    exposed-modules:    BDCS.API.Compose,
                        BDCS.API.Config,
                        BDCS.API.ComposeConfig,
                        BDCS.API.Customization,
                        BDCS.API.Depsolve,
                        BDCS.API.Error,
                        BDCS.API.QueueStatus,
                        BDCS.API.Recipe,
                        BDCS.API.Recipes,
                        BDCS.API.Server,
                        BDCS.API.TOMLMediaType,
                        BDCS.API.Utils,
                        BDCS.API.V0,
                        BDCS.API.Version,
                        BDCS.API.Workspace

    build-depends:      aeson >= 1.0.0.0 && < 1.4.0.0,
                        async,
                        base >= 4.9 && < 5.0,
                        bdcs >= 0.6.0,
                        bifunctors,
                        bytestring >= 0.10 && < 0.11,
                        concurrent-extra >= 0.7.0 && < 0.8,
                        cond >= 0.4.1.1 && < 0.5.0.0,
                        containers >= 0.5.7.1 && < 0.6,
                        directory >= 1.3.0.0 && < 1.4.0.0,
                        extra >= 1.6.5 && < 1.7.0,
                        filepath >= 1.4.1.1 && < 1.5.0.0,
                        gi-gio >= 2.0.14 && < 2.1.0,
                        gi-ggit >= 1.0.1 && < 1.1,
                        gi-glib >= 2.0.14 && < 2.1.0,
                        gitrev >= 1.3.1 && < 1.4,
                        haskell-gi-base >= 0.20.3 && < 0.22,
                        htoml >= 1.0.0 && < 1.1,
                        http-media >= 0.7.1 && < 0.8,
                        http-types >= 0.9.1 && < 0.10,
                        monad-logger >= 0.3.20.2 && < 0.3.28.2,
                        monad-loops >= 0.4.0 && < 0.5,
                        mtl >= 2.2.1 && < 2.3,
                        network,
                        persistent >= 2.7.0 && < 2.8.0,
                        persistent-sqlite >= 2.6.0 && < 2.7.0,
                        resourcet >= 1.1.9 && < 1.2,
                        safe-exceptions < 0.2.0.0,
                        semver >= 0.3.3 && < 0.4,
                        servant-options >= 0.1.0 && < 0.2,
                        servant-server >= 0.12 && < 0.14,
                        split >= 0.2.3 && < 0.3,
                        stm,
                        string-conversions >= 0.4.0 && < 0.5,
                        tar >= 0.5 && < 0.6,
                        temporary >= 1.2.0.4 && < 1.3.0.0,
                        text >= 1.2.2.0 && < 1.3,
                        time,
                        transformers,
                        unix >= 2.7.2.1 && < 2.8.0.0,
                        uuid >= 1.2.6 && < 1.4,
                        wai >= 3.2.1 && < 3.3,
                        wai-cors >= 0.2.5 && < 0.3,
                        warp >= 3.2.11 && < 3.3
    pkgconfig-depends:  libgit2-glib-1.0 >= 0.26.2
    other-modules:      Paths_bdcs_api

    hs-source-dirs:     src
    default-language:   Haskell2010
    ghc-options:        -Wall

executable bdcs-api-server
    main-is:            bdcs-api-server.hs
    hs-source-dirs:     tools
    build-depends:      base >= 4.9 && < 5.0,
                        bdcs-api,
                        safe-exceptions < 0.2.0.0
    other-modules:      Cmdline
    default-language:   Haskell2010
    ghc-options:        -Wall -threaded

test-suite spec
  type:                 exitcode-stdio-1.0
  main-is:              Spec.hs
  hs-source-dirs:       tests
  build-depends:        base >= 4.9 && < 5.0,
                        aeson >= 1.0.0.0 && < 1.4.0.0,
                        bdcs >= 0.6.0,
                        bdcs-api,
                        bytestring >= 0.10 && < 0.11,
                        cond >= 0.4.1.1 && < 0.5.0.0,
                        directory >= 1.3.0.0 && < 1.4.0.0,
                        filepath >= 1.4.1.1 && < 1.5.0.0,
                        hspec == 2.*,
                        http-client >= 0.5.7.0 && < 0.6.0.0,
                        monad-loops >= 0.4.0 && < 0.5,
                        safe-exceptions < 0.2.0.0,
                        servant-client >= 0.12.0.1 && < 0.14.0,
                        servant-server >= 0.12 && < 0.14,
                        string-conversions >= 0.4.0 && < 0.5,
                        string-qq >= 0.0.2 && < 0.1.0,
                        temporary >= 1.2.0.4 && < 1.3.0.0,
                        text >= 1.2.2.0 && < 1.3,
                        time,
                        wai >= 3.2.1 && < 3.3,
                        warp >= 3.2.11 && < 3.3
  default-language:     Haskell2010

  -- Ignore warnings about unlisted modules, so we don't have to list every new test
  ghc-options:          -Wall -Wno-unrecognised-warning-flags -Wno-missing-home-modules