Files
nixpkgs/pkgs/development/python-modules/formencode/default.nix
2026-10-11 10:34:58 -03:00

53 lines
895 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 = "https://www.formencode.org";
license = lib.licenses.mit;
maintainers = [ ];
};
}