1{
2 lib,
3 fetchPypi,
4 buildPythonPackage,
5 agate,
6 openpyxl,
7 xlrd,
8 olefile,
9 pytestCheckHook,
10 pythonOlder,
11}:
12
13buildPythonPackage rec {
14 pname = "agate-excel";
15 version = "0.4.1";
16 format = "setuptools";
17
18 disabled = pythonOlder "3.8";
19
20 src = fetchPypi {
21 inherit pname version;
22 hash = "sha256-KEJmGMkHRxEebVZumD2Djx4vrmQeppcNessOnUs4QJE=";
23 };
24
25 propagatedBuildInputs = [
26 agate
27 openpyxl
28 xlrd
29 olefile
30 ];
31
32 nativeCheckInputs = [ pytestCheckHook ];
33
34 pythonImportsCheck = [ "agate" ];
35
36 meta = with lib; {
37 description = "Adds read support for excel files to agate";
38 homepage = "https://github.com/wireservice/agate-excel";
39 changelog = "https://github.com/wireservice/agate-excel/blob/${version}/CHANGELOG.rst";
40 license = licenses.mit;
41 maintainers = [ ];
42 };
43}