Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.03 40 lines 971 B view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, isPy27 5, pytest 6, jdcal 7, et_xmlfile 8, lxml 9}: 10 11buildPythonPackage rec { 12 pname = "openpyxl"; 13 version = "3.0.2"; 14 disabled = isPy27; # 2.6.4 was final python2 release 15 16 src = fetchPypi { 17 inherit pname version; 18 sha256 = "eb68c08a72ac6d9812df181e88ebece3a68436364353eb6eda3bed863e3d73a6"; 19 }; 20 21 checkInputs = [ pytest ]; 22 propagatedBuildInputs = [ jdcal et_xmlfile lxml ]; 23 24 postPatch = '' 25 # LICENSE.rst is missing, and setup.cfg currently doesn't contain anything useful anyway 26 # This should likely be removed in the next update 27 rm setup.cfg 28 ''; 29 30 # Tests are not included in archive. 31 # https://bitbucket.org/openpyxl/openpyxl/issues/610 32 doCheck = false; 33 34 meta = { 35 description = "A Python library to read/write Excel 2007 xlsx/xlsm files"; 36 homepage = https://openpyxl.readthedocs.org; 37 license = lib.licenses.mit; 38 maintainers = with lib.maintainers; [ lihop sjourdois ]; 39 }; 40}