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