nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 fetchFromGitHub,
4 buildPythonPackage,
5 setuptools,
6 agate,
7 openpyxl,
8 xlrd,
9 olefile,
10 pytestCheckHook,
11}:
12
13buildPythonPackage (finalAttrs: {
14 pname = "agate-excel";
15 version = "0.4.2";
16 pyproject = true;
17
18 src = fetchFromGitHub {
19 owner = "wireservice";
20 repo = "agate-excel";
21 tag = finalAttrs.version;
22 hash = "sha256-sKy7NaRhJ4KYOOUKuNs0SGutUn8XEmSeQFQ/57gTGCg=";
23 };
24
25 build-system = [ setuptools ];
26
27 dependencies = [
28 agate
29 openpyxl
30 xlrd
31 olefile
32 ];
33
34 nativeCheckInputs = [ pytestCheckHook ];
35
36 pythonImportsCheck = [ "agate" ];
37
38 meta = {
39 description = "Adds read support for excel files to agate";
40 homepage = "https://github.com/wireservice/agate-excel";
41 changelog = "https://github.com/wireservice/agate-excel/blob/${finalAttrs.src.tag}/CHANGELOG.rst";
42 license = lib.licenses.mit;
43 maintainers = [ ];
44 };
45})