about summary refs log tree commit diff
path: root/pkgs/development/python-modules/dbf/default.nix
blob: 7858cf4a4ef632fbc7f16dab15312e9824844fcc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
{ lib
, fetchPypi
, buildPythonPackage
, aenum
, pythonOlder
, python
}:

buildPythonPackage rec {
  pname = "dbf";
  version = "0.99.9";
  format = "setuptools";

  disabled = pythonOlder "3.7";

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-MFEi1U0RNvrfDtV4HpvPgKTCibAh76z7Gnmj32IubYw=";
  };

  propagatedBuildInputs = [
    aenum
  ];

  checkPhase = ''
    ${python.interpreter} dbf/test.py
  '';

  pythonImportsCheck = [
    "dbf"
  ];

  meta = with lib; {
    description = "Module for reading/writing dBase, FoxPro, and Visual FoxPro .dbf files";
    homepage = "https://github.com/ethanfurman/dbf";
    license = licenses.bsd2;
    maintainers = with maintainers; [ vrthra ];
  };
}