2023-11-19 20:01:55 +03:00
|
|
|
cabal-version: 2.2
|
|
|
|
name: hnix-store-tests
|
|
|
|
version: 0.1.0.0
|
|
|
|
synopsis: Test utilities and instances
|
|
|
|
description:
|
|
|
|
This package contains Arbitrary instances for core
|
|
|
|
types, roundtrip property tests, utility functions
|
|
|
|
and a harness for running tests that require nix-store
|
|
|
|
with nix-daemon.
|
|
|
|
homepage: https://github.com/haskell-nix/hnix-store
|
|
|
|
license: Apache-2.0
|
|
|
|
license-file: LICENSE
|
2024-07-31 17:16:58 +03:00
|
|
|
author: Sorki
|
2023-11-19 20:01:55 +03:00
|
|
|
maintainer: srk@48.io
|
2024-07-31 17:16:58 +03:00
|
|
|
copyright: 2023 Sorki
|
2023-11-19 20:01:55 +03:00
|
|
|
category: Nix
|
|
|
|
build-type: Simple
|
|
|
|
extra-source-files:
|
|
|
|
CHANGELOG.md
|
|
|
|
, README.md
|
|
|
|
|
|
|
|
common commons
|
|
|
|
ghc-options: -Wall
|
|
|
|
default-extensions:
|
|
|
|
DerivingStrategies
|
|
|
|
, DerivingVia
|
|
|
|
, FlexibleInstances
|
|
|
|
, ScopedTypeVariables
|
|
|
|
, StandaloneDeriving
|
|
|
|
, RecordWildCards
|
|
|
|
, TypeApplications
|
|
|
|
, LambdaCase
|
|
|
|
default-language: Haskell2010
|
|
|
|
|
|
|
|
library
|
|
|
|
import: commons
|
|
|
|
exposed-modules:
|
2023-12-02 12:03:16 +03:00
|
|
|
Data.ByteString.Arbitrary
|
|
|
|
, Data.HashSet.Arbitrary
|
|
|
|
, Data.Text.Arbitrary
|
|
|
|
, Data.Vector.Arbitrary
|
|
|
|
, System.Nix.Arbitrary
|
2023-11-30 08:05:24 +03:00
|
|
|
, System.Nix.Arbitrary.Base
|
2023-11-19 20:01:55 +03:00
|
|
|
, System.Nix.Arbitrary.Build
|
|
|
|
, System.Nix.Arbitrary.ContentAddress
|
|
|
|
, System.Nix.Arbitrary.Derivation
|
|
|
|
, System.Nix.Arbitrary.DerivedPath
|
|
|
|
, System.Nix.Arbitrary.Hash
|
2023-12-05 10:07:37 +03:00
|
|
|
, System.Nix.Arbitrary.OutputName
|
2023-12-05 12:45:33 +03:00
|
|
|
, System.Nix.Arbitrary.Realisation
|
2023-11-23 22:38:45 +03:00
|
|
|
, System.Nix.Arbitrary.Signature
|
2023-11-22 10:45:02 +03:00
|
|
|
, System.Nix.Arbitrary.Store.Types
|
2023-11-19 20:01:55 +03:00
|
|
|
, System.Nix.Arbitrary.StorePath
|
2023-11-30 08:07:28 +03:00
|
|
|
, System.Nix.Arbitrary.StorePath.Metadata
|
2023-12-02 12:03:16 +03:00
|
|
|
, System.Nix.Arbitrary.UTCTime
|
2023-11-19 23:29:26 +03:00
|
|
|
, Test.Hspec.Nix
|
2023-11-19 20:01:55 +03:00
|
|
|
build-depends:
|
|
|
|
base >=4.12 && <5
|
2023-11-19 23:27:48 +03:00
|
|
|
, hnix-store-core >= 0.8
|
2023-11-19 20:01:55 +03:00
|
|
|
, bytestring
|
2023-12-01 21:19:28 +03:00
|
|
|
, containers
|
2023-11-23 21:22:19 +03:00
|
|
|
, crypton
|
2023-11-19 20:01:55 +03:00
|
|
|
, dependent-sum > 0.7
|
|
|
|
, generic-arbitrary < 1.1
|
2023-12-02 12:03:16 +03:00
|
|
|
, hashable
|
2023-11-19 23:29:26 +03:00
|
|
|
, hspec
|
2023-11-19 20:01:55 +03:00
|
|
|
, QuickCheck
|
|
|
|
, text
|
2023-12-02 12:03:16 +03:00
|
|
|
, time
|
|
|
|
, unordered-containers
|
|
|
|
, vector
|
2023-11-19 20:01:55 +03:00
|
|
|
hs-source-dirs: src
|
|
|
|
|
|
|
|
test-suite props
|
|
|
|
import: commons
|
|
|
|
type: exitcode-stdio-1.0
|
|
|
|
main-is: Spec.hs
|
|
|
|
other-modules:
|
|
|
|
BaseEncodingSpec
|
|
|
|
ContentAddressSpec
|
|
|
|
DerivationSpec
|
|
|
|
DerivedPathSpec
|
2023-12-05 21:34:44 +03:00
|
|
|
RealisationSpec
|
2023-11-19 20:01:55 +03:00
|
|
|
StorePathSpec
|
2023-11-23 22:38:45 +03:00
|
|
|
SignatureSpec
|
2023-11-19 20:01:55 +03:00
|
|
|
hs-source-dirs:
|
|
|
|
tests
|
|
|
|
build-tool-depends:
|
|
|
|
hspec-discover:hspec-discover
|
|
|
|
build-depends:
|
|
|
|
base
|
|
|
|
, hnix-store-core
|
|
|
|
, hnix-store-tests
|
|
|
|
, attoparsec
|
|
|
|
, text
|
|
|
|
, hspec
|