diff options
author | Martin Weinelt <hexa@darmstadt.ccc.de> | 2021-10-10 05:05:31 +0200 |
---|---|---|
committer | Martin Weinelt <hexa@darmstadt.ccc.de> | 2021-10-11 01:22:10 +0200 |
commit | fd2d5dd3398acc4b34540250a8339c1207b3cbf8 (patch) | |
tree | f65fbd0285f1d42013a7bba3e5a3def14d432102 /pkgs/development/python-modules/FormEncode | |
parent | 6f565484b270ad38f7c47b8cefc254229ecbfb4b (diff) | |
download | nixpkgs-fd2d5dd3398acc4b34540250a8339c1207b3cbf8.tar nixpkgs-fd2d5dd3398acc4b34540250a8339c1207b3cbf8.tar.gz nixpkgs-fd2d5dd3398acc4b34540250a8339c1207b3cbf8.tar.bz2 nixpkgs-fd2d5dd3398acc4b34540250a8339c1207b3cbf8.tar.lz nixpkgs-fd2d5dd3398acc4b34540250a8339c1207b3cbf8.tar.xz nixpkgs-fd2d5dd3398acc4b34540250a8339c1207b3cbf8.tar.zst nixpkgs-fd2d5dd3398acc4b34540250a8339c1207b3cbf8.zip |
python3Packages.FormEncode: fix tests, refactor
Diffstat (limited to 'pkgs/development/python-modules/FormEncode')
-rw-r--r-- | pkgs/development/python-modules/FormEncode/default.nix | 32 |
1 files changed, 24 insertions, 8 deletions
diff --git a/pkgs/development/python-modules/FormEncode/default.nix b/pkgs/development/python-modules/FormEncode/default.nix index 70e7e09bbbe..08bcbaa6516 100644 --- a/pkgs/development/python-modules/FormEncode/default.nix +++ b/pkgs/development/python-modules/FormEncode/default.nix @@ -1,4 +1,14 @@ -{ lib, buildPythonPackage, fetchPypi, dnspython, pycountry, nose, setuptools-scm, six, isPy27 }: +{ lib +, buildPythonPackage +, isPy27 +, fetchPypi +, nose +, setuptools-scm +, six +, dnspython +, pycountry +, pytestCheckHook +}: buildPythonPackage rec { pname = "FormEncode"; @@ -12,23 +22,29 @@ buildPythonPackage rec { }; postPatch = '' - sed -i 's/setuptools_scm_git_archive//' setup.py - sed -i 's/use_scm_version=.*,/version="${version}",/' setup.py + sed -i '/setuptools_scm_git_archive/d' setup.py ''; nativeBuildInputs = [ setuptools-scm ]; + propagatedBuildInputs = [ six ]; - checkInputs = [ dnspython pycountry nose ]; + checkInputs = [ + dnspython + pycountry + pytestCheckHook + ]; - preCheck = '' - # requires dns resolving - sed -i 's/test_unicode_ascii_subgroup/noop/' formencode/tests/test_email.py - ''; + disabledTests = [ + # requires network for DNS resolution + "test_doctests" + "test_unicode_ascii_subgroup" + ]; meta = with lib; { description = "FormEncode validates and converts nested structures"; homepage = "http://formencode.org"; license = licenses.mit; + maintainers = with maintainers; [ ]; }; } |