at master 1.1 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 et-xmlfile, 5 fetchFromGitLab, 6 lxml, 7 pandas, 8 pillow, 9 pytestCheckHook, 10 pythonOlder, 11 setuptools, 12}: 13 14buildPythonPackage rec { 15 pname = "openpyxl"; 16 version = "3.1.5"; 17 pyproject = true; 18 19 disabled = pythonOlder "3.7"; 20 21 src = fetchFromGitLab { 22 domain = "foss.heptapod.net"; 23 owner = "openpyxl"; 24 repo = "openpyxl"; 25 rev = "refs/tags/${version}"; 26 hash = "sha256-vp+TIWcHCAWlDaBcmC7w/kV7DZTZpa6463NusaJmqKo="; 27 }; 28 29 build-system = [ setuptools ]; 30 31 dependencies = [ et-xmlfile ]; 32 33 nativeCheckInputs = [ 34 lxml 35 pandas 36 pillow 37 pytestCheckHook 38 ]; 39 40 pytestFlags = [ 41 "-Wignore::DeprecationWarning" 42 ]; 43 44 disabledTests = [ 45 # lxml 6.0 46 "test_iterparse" 47 ]; 48 49 pythonImportsCheck = [ "openpyxl" ]; 50 51 meta = with lib; { 52 description = "Python library to read/write Excel 2010 xlsx/xlsm files"; 53 homepage = "https://openpyxl.readthedocs.org"; 54 changelog = "https://foss.heptapod.net/openpyxl/openpyxl/-/blob/${version}/doc/changes.rst"; 55 license = licenses.mit; 56 maintainers = with maintainers; [ lihop ]; 57 }; 58}