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