1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 pyexcel-io,
6 xlrd,
7 xlwt,
8 nose,
9 pyexcel,
10 mock,
11}:
12
13buildPythonPackage rec {
14 pname = "pyexcel-xls";
15 version = "0.7.0";
16 format = "setuptools";
17
18 src = fetchPypi {
19 inherit pname version;
20 sha256 = "5ec606ef8667aafbb0c3fbd8242a7c23bf175ee7c10b08f70799b84fb2db84cb";
21 };
22
23 propagatedBuildInputs = [
24 pyexcel-io
25 xlrd
26 xlwt
27 ];
28
29 nativeCheckInputs = [
30 nose
31 pyexcel
32 mock
33 ];
34
35 postPatch = ''
36 substituteInPlace setup.py --replace "xlrd<2" "xlrd<3"
37 '';
38
39 checkPhase = "nosetests --exclude test_issue_151";
40
41 meta = {
42 description = "A wrapper library to read, manipulate and write data in xls using xlrd and xlwt";
43 homepage = "http://docs.pyexcel.org/";
44 license = lib.licenses.bsd3;
45 maintainers = with lib.maintainers; [ ];
46 };
47}