1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 fetchpatch2,
6 pyexcel-io,
7 odfpy,
8 pyexcel,
9 pyexcel-xls,
10 psutil,
11 pytestCheckHook,
12 pytest-cov-stub,
13 setuptools,
14}:
15
16buildPythonPackage rec {
17 pname = "pyexcel-ods";
18 version = "0.6.0";
19 pyproject = true;
20
21 src = fetchFromGitHub {
22 owner = "pyexcel";
23 repo = "pyexcel-ods";
24 rev = "v${version}";
25 hash = "sha256-wptjCSi56hotmiIE0TrLY7jsCHKwDR+a7d89sAQWBHg=";
26 };
27
28 patches = [
29 # https://github.com/pyexcel/pyexcel-ods/pull/45
30 (fetchpatch2 {
31 name = "nose-to-pytest.patch";
32 url = "https://github.com/pyexcel/pyexcel-ods/compare/661d4f0b484ed281128c72e1a2701e2d33fc1879...838b410e800a86c147644568aaa8b2c005d13491.patch";
33 hash = "sha256-1a52VM8yGDEjSFXTq3Di74xwv10d/QskpctOnz9zW1w=";
34 })
35 ];
36
37 build-system = [ setuptools ];
38
39 dependencies = [
40 pyexcel-io
41 odfpy
42 ];
43
44 nativeCheckInputs = [
45 pytestCheckHook
46 pytest-cov-stub
47 pyexcel
48 pyexcel-xls
49 psutil
50 ];
51
52 meta = {
53 description = "Plug-in to pyexcel providing the capbility to read, manipulate and write data in ods formats using odfpy";
54 homepage = "http://docs.pyexcel.org/";
55 license = lib.licenses.bsd3;
56 maintainers = [ ];
57 };
58}