Files
nixpkgs/pkgs/development/python-modules/pyexcel-xls/default.nix
dish 88670a3166 python3Packages.pyexcel-xls: fix build
Removes a patch that is applied in 0.7.1
2025-08-24 10:59:22 -04:00

51 lines
884 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pyexcel-io,
xlrd,
xlwt,
pyexcel,
pytestCheckHook,
pytest-cov-stub,
setuptools,
}:
buildPythonPackage rec {
pname = "pyexcel-xls";
version = "0.7.1";
pyproject = true;
src = fetchFromGitHub {
owner = "pyexcel";
repo = "pyexcel-xls";
tag = "v${version}";
hash = "sha256-+iwdMSGUsUbWFO4s4+3Zf+47J9bzFffWthZoeThT8f0=";
};
build-system = [ setuptools ];
dependencies = [
pyexcel-io
xlrd
xlwt
];
nativeCheckInputs = [
pytestCheckHook
pyexcel
pytest-cov-stub
];
postPatch = ''
substituteInPlace setup.py --replace "xlrd<2" "xlrd<3"
'';
meta = {
description = "Wrapper library to read, manipulate and write data in xls using xlrd and xlwt";
homepage = "http://docs.pyexcel.org/";
license = lib.licenses.bsd3;
maintainers = [ ];
};
}