1a04744f74
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:
pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
for f in $(find -name '*.nix'); do
grep -q "$pattern" "$f" || continue
sed -i "/$pattern/d" "$f"
if [ $(grep -c pythonOlder "$f") == 1 ]; then
sed -i '/^\s*pythonOlder,\s*$/d' "$f"
fi
nixfmt "$f"
done
39 lines
817 B
Nix
39 lines
817 B
Nix
{
|
|
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 = [ ];
|
|
};
|
|
}
|