Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib
2, buildPythonPackage
3, fetchPypi
4, pytest
5, jdcal
6, et_xmlfile
7, lxml
8}:
9
10buildPythonPackage rec {
11 pname = "openpyxl";
12 version = "2.4.8";
13 name = "${pname}-${version}";
14
15 src = fetchPypi {
16 inherit pname version;
17 sha256 = "ee7551efb70648fa8ee569c2b6a6dbbeff390cc94b321da5d508a573b90a4f17";
18 };
19
20 checkInputs = [ pytest ];
21 propagatedBuildInputs = [ jdcal et_xmlfile lxml ];
22
23 # Tests are not included in archive.
24 # https://bitbucket.org/openpyxl/openpyxl/issues/610
25 doCheck = false;
26
27 meta = {
28 description = "A Python library to read/write Excel 2007 xlsx/xlsm files";
29 homepage = https://openpyxl.readthedocs.org;
30 license = lib.licenses.mit;
31 maintainers = with lib.maintainers; [ lihop sjourdois ];
32 };
33}