nixpkgs/pkgs/development/python-modules/FormEncode/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

50 lines
903 B
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, isPy27
, fetchPypi
, setuptools-scm
, six
, dnspython
, pycountry
, pytestCheckHook
}:
2017-07-09 01:01:12 +01:00
buildPythonPackage rec {
pname = "FormEncode";
version = "2.0.1";
2020-10-11 01:33:01 +01:00
disabled = isPy27;
2017-07-09 01:01:12 +01:00
src = fetchPypi {
inherit pname version;
sha256 = "8f2974112c2557839d5bae8b76490104c03830785d923abbdef148bf3f710035";
2017-07-09 01:01:12 +01:00
};
2020-10-11 01:33:01 +01:00
postPatch = ''
sed -i '/setuptools_scm_git_archive/d' setup.py
2017-07-09 01:01:12 +01:00
'';
nativeBuildInputs = [ setuptools-scm ];
2020-10-11 01:33:01 +01:00
propagatedBuildInputs = [ six ];
checkInputs = [
dnspython
pycountry
pytestCheckHook
];
2020-10-11 01:33:01 +01:00
disabledTests = [
# requires network for DNS resolution
"test_doctests"
"test_unicode_ascii_subgroup"
];
2017-07-09 01:01:12 +01:00
meta = with lib; {
2017-07-09 01:01:12 +01:00
description = "FormEncode validates and converts nested structures";
homepage = "http://formencode.org";
2017-07-09 01:01:12 +01:00
license = licenses.mit;
maintainers = with maintainers; [ ];
2017-07-09 01:01:12 +01:00
};
}