blob: e08da118e6aed82b0ec232a62369c78e44d1add7 (
plain)
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
|
{
lib,
fetchPypi,
buildPythonPackage,
aenum,
python,
}:
buildPythonPackage rec {
pname = "dbf";
version = "0.99.11";
format = "setuptools";
src = fetchPypi {
inherit pname version;
hash = "sha256-IWnAUlLA776JfzRvBoMybsJYVL6rHQxkMN9ukDpXsxU=";
};
# Workaround for https://github.com/ethanfurman/dbf/issues/48
patches = lib.optional python.stdenv.hostPlatform.isDarwin ./darwin.patch;
propagatedBuildInputs = [ aenum ];
checkPhase = ''
runHook preCheck
${python.interpreter} -m dbf.test
runHook postCheck
'';
pythonImportsCheck = [ "dbf" ];
meta = {
description = "Module for reading/writing dBase, FoxPro, and Visual FoxPro .dbf files";
homepage = "https://github.com/ethanfurman/dbf";
license = lib.licenses.bsd2;
maintainers = [ ];
};
}
|