1{ lib
2, fetchPypi
3, buildPythonPackage
4, aenum
5, pythonOlder
6, python
7}:
8
9buildPythonPackage rec {
10 pname = "dbf";
11 version = "0.99.3";
12 format = "setuptools";
13
14 disabled = pythonOlder "3.7";
15
16 src = fetchPypi {
17 inherit pname version;
18 hash = "sha256-lAJypyrCfRah22mq/vggaEASzDVT/+mHXVzS46nLadw=";
19 };
20
21 propagatedBuildInputs = [
22 aenum
23 ];
24
25 checkPhase = ''
26 ${python.interpreter} dbf/test.py
27 '';
28
29 pythonImportsCheck = [
30 "dbf"
31 ];
32
33 meta = with lib; {
34 description = "Module for reading/writing dBase, FoxPro, and Visual FoxPro .dbf files";
35 homepage = "https://github.com/ethanfurman/dbf";
36 license = licenses.bsd2;
37 maintainers = with maintainers; [ vrthra ];
38 };
39}