1{ lib, fetchPypi, buildPythonPackage, aenum, isPy3k, pythonOlder, enum34, python }:
2
3buildPythonPackage rec {
4 pname = "dbf";
5 version = "0.99.1";
6
7 src = fetchPypi {
8 inherit pname version;
9 sha256 = "4ed598a3866dfe7761b8099cf53ab44cb6ed5e4a7dbffb0da8c67a4af8d62fc5";
10 };
11
12 propagatedBuildInputs = [ aenum ] ++ lib.optional (pythonOlder "3.4") enum34;
13
14 doCheck = !isPy3k;
15 # tests are not yet ported.
16 # https://groups.google.com/forum/#!topic/python-dbase/96rx2xmCG4w
17
18 checkPhase = ''
19 ${python.interpreter} dbf/test.py
20 '';
21
22 meta = with lib; {
23 description = "Pure python package for reading/writing dBase, FoxPro, and Visual FoxPro .dbf files";
24 homepage = "https://pypi.python.org/pypi/dbf";
25 license = licenses.bsd2;
26 maintainers = with maintainers; [ vrthra ];
27 };
28}