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
57 lines
1.0 KiB
Nix
57 lines
1.0 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
|
|
# build-system
|
|
setuptools,
|
|
setuptools-scm,
|
|
|
|
# dependencies
|
|
more-itertools,
|
|
typeguard,
|
|
|
|
# checks
|
|
pytestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "inflect";
|
|
version = "7.5.0";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "jaraco";
|
|
repo = "inflect";
|
|
tag = "v${version}";
|
|
hash = "sha256-JQn0JySzXFnqz/dPc7BGLzd23Bh72S+/aI40gxAgx8k=";
|
|
};
|
|
|
|
build-system = [
|
|
setuptools
|
|
setuptools-scm
|
|
];
|
|
|
|
dependencies = [
|
|
more-itertools
|
|
typeguard
|
|
];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
disabledTests = [
|
|
# https://errors.pydantic.dev/2.5/v/string_too_short
|
|
"inflect.engine.compare"
|
|
];
|
|
|
|
pythonImportsCheck = [ "inflect" ];
|
|
|
|
meta = {
|
|
description = "Correctly generate plurals, singular nouns, ordinals, indefinite articles";
|
|
homepage = "https://github.com/jaraco/inflect";
|
|
changelog = "https://github.com/jaraco/inflect/blob/${src.tag}/CHANGES.rst";
|
|
license = lib.licenses.mit;
|
|
teams = [ lib.teams.tts ];
|
|
};
|
|
}
|