summaryrefslogtreecommitdiffstats
path: root/pkgs/development/python-modules/agate-excel/default.nix
blob: 5367dab12476622e1b24cdcdca69308e3b4216db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
{
  lib,
  fetchFromGitHub,
  buildPythonPackage,
  setuptools,
  agate,
  openpyxl,
  xlrd,
  olefile,
  pytestCheckHook,
}:

buildPythonPackage (finalAttrs: {
  pname = "agate-excel";
  version = "0.4.2";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "wireservice";
    repo = "agate-excel";
    tag = finalAttrs.version;
    hash = "sha256-sKy7NaRhJ4KYOOUKuNs0SGutUn8XEmSeQFQ/57gTGCg=";
  };

  build-system = [ setuptools ];

  dependencies = [
    agate
    openpyxl
    xlrd
    olefile
  ];

  nativeCheckInputs = [ pytestCheckHook ];

  pythonImportsCheck = [ "agate" ];

  meta = {
    description = "Adds read support for excel files to agate";
    homepage = "https://github.com/wireservice/agate-excel";
    changelog = "https://github.com/wireservice/agate-excel/blob/${finalAttrs.src.tag}/CHANGELOG.rst";
    license = lib.licenses.mit;
    maintainers = [ ];
  };
})