1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-25 15:11:35 +00:00
nixpkgs/pkgs/development/python-modules/colanderalchemy/default.nix
Robert Scott 9b69cf0865 pythonPackages.ColanderAlchemy: mark as broken for colander >1.6.0 (#59975)
ColanderAlchemy doesn't seem to have been updated for colander 1.7.0,
or at least its tests haven't been and we get a single, subtle test
failure around null handling which I don't feel comfortable skipping.
Issue filed upstream https://github.com/stefanofontanelli/ColanderAlchemy/issues/107

users that really need this will have to feed in their own pinned
colander package.
2019-04-26 09:15:24 +02:00

39 lines
1,023 B
Nix

{ stdenv
, buildPythonPackage
, fetchpatch
, fetchPypi
, unittest2
, colander
, sqlalchemy
}:
buildPythonPackage rec {
pname = "ColanderAlchemy";
version = "0.3.3";
src = fetchPypi {
inherit pname version;
sha256 = "11wcni2xmfmy001rj62q2pwf305vvngkrfm5c4zlwvgbvlsrvnnw";
};
patches = [
(fetchpatch {
url = "https://github.com/stefanofontanelli/ColanderAlchemy/commit/b45fe35f2936a5ccb705e9344075191e550af6c9.patch";
sha256 = "1kf278wjq49zd6fhpp55vdcawzdd107767shzfck522sv8gr6qvx";
})
];
buildInputs = [ unittest2 ];
propagatedBuildInputs = [ colander sqlalchemy ];
meta = with stdenv.lib; {
description = "Autogenerate Colander schemas based on SQLAlchemy models";
homepage = https://github.com/stefanofontanelli/ColanderAlchemy;
license = licenses.mit;
# ColanderAlchemy's tests currently fail with colander >1.6.0
# (see https://github.com/stefanofontanelli/ColanderAlchemy/issues/107)
broken = versionOlder "1.6.0" colander.version;
};
}