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