Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 34 lines 883 B view raw
1{ lib, buildPythonPackage, fetchPypi, dnspython, pycountry, nose, setuptools_scm, six, isPy27 }: 2 3buildPythonPackage rec { 4 pname = "FormEncode"; 5 version = "2.0.0"; 6 7 disabled = isPy27; 8 9 src = fetchPypi { 10 inherit pname version; 11 sha256 = "049pm276140h30xgzwylhpii24xcln1qfdlfmbj69sqpfhlr5szj"; 12 }; 13 14 postPatch = '' 15 sed -i 's/setuptools_scm_git_archive//' setup.py 16 sed -i 's/use_scm_version=.*,/version="${version}",/' setup.py 17 ''; 18 19 nativeBuildInputs = [ setuptools_scm ]; 20 propagatedBuildInputs = [ six ]; 21 22 checkInputs = [ dnspython pycountry nose ]; 23 24 preCheck = '' 25 # requires dns resolving 26 sed -i 's/test_unicode_ascii_subgroup/noop/' formencode/tests/test_email.py 27 ''; 28 29 meta = with lib; { 30 description = "FormEncode validates and converts nested structures"; 31 homepage = "http://formencode.org"; 32 license = licenses.mit; 33 }; 34}