mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 13:43:22 +00:00
4a0c0401b5
`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
30 lines
819 B
Nix
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;
|
|
};
|
|
}
|