mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-08 08:24:10 +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
52 lines
890 B
Nix
52 lines
890 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
setuptools-scm,
|
|
six,
|
|
dnspython,
|
|
legacy-cgi,
|
|
pycountry,
|
|
pytestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "formencode";
|
|
version = "2.1.1";
|
|
pyproject = true;
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-4X8WGZ0jLlT2eRIATzrTM827uBoaGhAjis8JurmfkZk=";
|
|
};
|
|
|
|
postPatch = ''
|
|
sed -i '/setuptools_scm_git_archive/d' setup.py
|
|
'';
|
|
|
|
build-system = [ setuptools-scm ];
|
|
|
|
dependencies = [
|
|
six
|
|
legacy-cgi
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
dnspython
|
|
pycountry
|
|
pytestCheckHook
|
|
];
|
|
|
|
disabledTests = [
|
|
# requires network for DNS resolution
|
|
"test_doctests"
|
|
"test_unicode_ascii_subgroup"
|
|
];
|
|
|
|
meta = {
|
|
description = "FormEncode validates and converts nested structures";
|
|
homepage = "http://formencode.org";
|
|
license = lib.licenses.mit;
|
|
maintainers = [ ];
|
|
};
|
|
}
|