51 lines
884 B
Nix
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 = [ ];
|
|
};
|
|
}
|