nixpkgs/pkgs/development/libraries/haskell/digestive-functors-aeson/default.nix
Peter Simons 514079a2d7 haskell-digestive-functors-aeson: broken by update of 'text'
Jailbreaking the package makes the build succeeds, but then the test suite fails:

    Running 1 test suites...
    Test suite tests: RUNNING...
    Tests
      Pokemon tests
        Submit pokeForm with valid data:   OK
        Submit pokeForm with invalid data/check error view
          Failed validation:               OK
          jsonErrors shows correct errors: OK
      Pokedex tests
        Valid pokedex with one pokemon:    OK
        Valid pokedex with many pokemon:   OK
        Submit pokedex with a single invalid item
          Failed validation:               OK
          jsonErrors shows correct errors: FAIL
            Exception: HUnitFailure "expected: Object (fromList [(\"pokemon\",Array (fromList [Object (fromList [(\"name\",String \"Name cannot be empty\")])]))])\n but got: Object (fromList [(\"pokemon\",Array (fromList [Object (fromList [(\"name\",String \"Name cannot be empty\"),(\"number\",String \"Could not parse number\")])]))])"
        Submit pokedex with a later invalid item
          Failed validation:               OK
          jsonErrors shows correct errors: FAIL
            Exception: HUnitFailure "expected: Object (fromList [(\"pokemon\",Array (fromList [Null,Object (fromList [(\"name\",String \"Name cannot be empty\")])]))])\n but got: Object (fromList [(\"pokemon\",Array (fromList [Object (fromList [(\"number\",String \"Could not parse number\")]),Object (fromList [(\"name\",String \"Name cannot be empty\"),(\"number\",String \"Could not parse number\")])]))])"
      Top level lists:                     OK
      Booleans work:                       OK
2014-11-01 21:08:03 +01:00

26 lines
850 B
Nix

# This file was auto-generated by cabal2nix. Please do NOT edit manually!
{ cabal, aeson, digestiveFunctors, HUnit, lens, lensAeson, mtl
, safe, scientific, tasty, tastyHunit, text, vector
}:
cabal.mkDerivation (self: {
pname = "digestive-functors-aeson";
version = "1.1.11";
sha256 = "0jf62ssyc317x070xkjdnfbb2g8mb19a83hig08j95vyqwjgk4vg";
buildDepends = [
aeson digestiveFunctors lens lensAeson safe text vector
];
testDepends = [
aeson digestiveFunctors HUnit mtl scientific tasty tastyHunit text
];
meta = {
homepage = "http://github.com/ocharles/digestive-functors-aeson";
description = "Run digestive-functors forms against JSON";
license = self.stdenv.lib.licenses.gpl3;
platforms = self.ghc.meta.platforms;
maintainers = with self.stdenv.lib.maintainers; [ ocharles ];
broken = true;
};
})