1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pyexcel-io, 6 xlrd, 7 xlwt, 8 pyexcel, 9 pytestCheckHook, 10 pytest-cov-stub, 11 setuptools, 12}: 13 14buildPythonPackage rec { 15 pname = "pyexcel-xls"; 16 version = "0.7.1"; 17 pyproject = true; 18 19 src = fetchFromGitHub { 20 owner = "pyexcel"; 21 repo = "pyexcel-xls"; 22 tag = "v${version}"; 23 hash = "sha256-+iwdMSGUsUbWFO4s4+3Zf+47J9bzFffWthZoeThT8f0="; 24 }; 25 26 build-system = [ setuptools ]; 27 28 dependencies = [ 29 pyexcel-io 30 xlrd 31 xlwt 32 ]; 33 34 nativeCheckInputs = [ 35 pytestCheckHook 36 pyexcel 37 pytest-cov-stub 38 ]; 39 40 postPatch = '' 41 substituteInPlace setup.py --replace "xlrd<2" "xlrd<3" 42 ''; 43 44 meta = { 45 description = "Wrapper library to read, manipulate and write data in xls using xlrd and xlwt"; 46 homepage = "http://docs.pyexcel.org/"; 47 license = lib.licenses.bsd3; 48 maintainers = [ ]; 49 }; 50}