3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/tablib/default.nix
Maximilian Bosch 4a0c0401b5
pythonPackages.tablib: fix build
`openpyxl` v5 breaks `tablib`, the following patch fixes the API
incompatibility: https://github.com/kennethreitz/tablib/pull/296

See https://hydra.nixos.org/build/70694938/log
See ticket #36453
2018-03-17 15:21:59 +01:00

30 lines
819 B
Nix

{ buildPythonPackage, stdenv, fetchPypi, pytest, unicodecsv, pandas
, xlwt, openpyxl, pyyaml, xlrd, odfpy, fetchpatch
}:
buildPythonPackage rec {
pname = "tablib";
version = "0.12.1";
src = fetchPypi {
inherit pname version;
sha256 = "11wxchj0qz77dn79yiq30k4b4gsm429f4bizk4lm4rb63nk51kxq";
};
checkInputs = [ pytest unicodecsv pandas ];
propagatedBuildInputs = [ xlwt openpyxl pyyaml xlrd odfpy ];
patches = [
(fetchpatch {
url = "https://github.com/kennethreitz/tablib/commit/0e51a2d0944022af186d2dcd34c0ab3c47141ba5.patch";
sha256 = "0lbbl871zdn5vpgqyjkil0c2ap3b5hz19rmihhyvrx7m4mlh1aij";
})
];
meta = with stdenv.lib; {
description = "Tablib: format-agnostic tabular dataset library";
homepage = http://python-tablib.org;
license = licenses.mit;
};
}