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