1{ 2 lib, 3 buildPythonPackage, 4 pythonOlder, 5 fetchPypi, 6 setuptools-scm, 7 six, 8 dnspython, 9 legacy-cgi, 10 pycountry, 11 pytestCheckHook, 12}: 13 14buildPythonPackage rec { 15 pname = "formencode"; 16 version = "2.1.1"; 17 pyproject = true; 18 19 disabled = pythonOlder "3.7"; 20 21 src = fetchPypi { 22 inherit pname version; 23 hash = "sha256-4X8WGZ0jLlT2eRIATzrTM827uBoaGhAjis8JurmfkZk="; 24 }; 25 26 postPatch = '' 27 sed -i '/setuptools_scm_git_archive/d' setup.py 28 ''; 29 30 build-system = [ setuptools-scm ]; 31 32 dependencies = [ 33 six 34 legacy-cgi 35 ]; 36 37 nativeCheckInputs = [ 38 dnspython 39 pycountry 40 pytestCheckHook 41 ]; 42 43 disabledTests = [ 44 # requires network for DNS resolution 45 "test_doctests" 46 "test_unicode_ascii_subgroup" 47 ]; 48 49 meta = { 50 description = "FormEncode validates and converts nested structures"; 51 homepage = "http://formencode.org"; 52 license = lib.licenses.mit; 53 maintainers = [ ]; 54 }; 55}