1{ lib
2, buildPythonPackage
3, fetchPypi
4, pytestCheckHook
5}:
6
7buildPythonPackage rec {
8 pname = "olefile";
9 version = "0.46";
10 format = "setuptools";
11
12 src = fetchPypi {
13 inherit pname version;
14 extension = "zip";
15 sha256 = "133b031eaf8fd2c9399b78b8bc5b8fcbe4c31e85295749bb17a87cba8f3c3964";
16 };
17
18 nativeCheckInputs = [
19 pytestCheckHook
20 ];
21
22 pythonImportsCheck = [
23 "olefile"
24 ];
25
26 meta = with lib; {
27 description = "Python package to parse, read and write Microsoft OLE2 files";
28 homepage = "https://www.decalage.info/python/olefileio";
29 # BSD2 + reference to Pillow
30 # http://olefile.readthedocs.io/en/latest/License.html
31 license = with licenses; [ bsd2 /* and */ hpnd ];
32 maintainers = with maintainers; [ fab ];
33 };
34}