mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-09 05:57:04 +01:00
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
58 lines
1 KiB
Nix
58 lines
1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
|
|
# build-system
|
|
babel,
|
|
hatchling,
|
|
setuptools,
|
|
|
|
# dependencies
|
|
markupsafe,
|
|
|
|
# optional-dependencies
|
|
email-validator,
|
|
|
|
# tests
|
|
pytestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "wtforms";
|
|
version = "3.2.1";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "wtforms";
|
|
repo = "wtforms";
|
|
tag = version;
|
|
hash = "sha256-jwjP/wkk8MdNJbPE8MlkrH4DyR304Ju41nN4lMo3jFs=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
babel
|
|
hatchling
|
|
setuptools
|
|
];
|
|
|
|
propagatedBuildInputs = [ markupsafe ];
|
|
|
|
optional-dependencies = {
|
|
email = [ email-validator ];
|
|
};
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
]
|
|
++ lib.concatAttrValues optional-dependencies;
|
|
|
|
pythonImportsCheck = [ "wtforms" ];
|
|
|
|
meta = {
|
|
description = "Flexible forms validation and rendering library for Python";
|
|
homepage = "https://github.com/wtforms/wtforms";
|
|
changelog = "https://github.com/wtforms/wtforms/blob/${version}/CHANGES.rst";
|
|
license = lib.licenses.bsd3;
|
|
};
|
|
}
|