python312Packages.osmnx: 1.9.3 → 2.0.0 (#360529)
[NixPkgs.git] / pkgs / development / python-modules / dbf / default.nix
blob75969681b0000c699a598593fb85b81afb6fe9a1
2   lib,
3   fetchPypi,
4   buildPythonPackage,
5   aenum,
6   pythonOlder,
7   python,
8 }:
10 buildPythonPackage rec {
11   pname = "dbf";
12   version = "0.99.9";
13   format = "setuptools";
15   disabled = pythonOlder "3.7";
17   src = fetchPypi {
18     inherit pname version;
19     hash = "sha256-MFEi1U0RNvrfDtV4HpvPgKTCibAh76z7Gnmj32IubYw=";
20   };
22   # Workaround for https://github.com/ethanfurman/dbf/issues/48
23   patches = lib.optional python.stdenv.hostPlatform.isDarwin ./darwin.patch;
25   propagatedBuildInputs = [ aenum ];
27   checkPhase = ''
28     runHook preCheck
29     ${python.interpreter} -m dbf.test
30     runHook postCheck
31   '';
33   pythonImportsCheck = [ "dbf" ];
35   meta = with lib; {
36     description = "Module for reading/writing dBase, FoxPro, and Visual FoxPro .dbf files";
37     homepage = "https://github.com/ethanfurman/dbf";
38     license = licenses.bsd2;
39     maintainers = [ ];
40   };