nixpkgs/pkgs/development/python-modules/pyexcel-xls/default.nix
adisbladis 02dab4ab5c python3.pkgs.*: Explicitly pass buildPythonPackage format parameter
Long term we should move everything over to `pyproject = true`, but in
the mean time we can work towards deprecating the implicit `format` paremeter.

cc https://github.com/NixOS/nixpkgs/issues/253154
cc @mweinelt @figsoda
2023-12-07 17:46:49 +01:00

47 lines
829 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, pyexcel-io
, xlrd
, xlwt
, nose
, pyexcel
, mock
}:
buildPythonPackage rec {
pname = "pyexcel-xls";
version = "0.7.0";
format = "setuptools";
src = fetchPypi {
inherit pname version;
sha256 = "5ec606ef8667aafbb0c3fbd8242a7c23bf175ee7c10b08f70799b84fb2db84cb";
};
propagatedBuildInputs = [
pyexcel-io
xlrd
xlwt
];
nativeCheckInputs = [
nose
pyexcel
mock
];
postPatch = ''
substituteInPlace setup.py --replace "xlrd<2" "xlrd<3"
'';
checkPhase = "nosetests --exclude test_issue_151";
meta = {
description = "A wrapper library to read, manipulate and write data in xls using xlrd and xlwt";
homepage = "http://docs.pyexcel.org/";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ ];
};
}