Unverified Commit a96133ed authored by Martin Weinelt's avatar Martin Weinelt Committed by GitHub
Browse files

python313Packages.formencode: fix build (#373164)

parents 57f70dff 3c0f2224
Loading
Loading
Loading
Loading
+11 −7
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  isPy27,
  pythonOlder,
  fetchPypi,
  setuptools-scm,
  six,
  dnspython,
  legacy-cgi,
  pycountry,
  pytestCheckHook,
}:
@@ -13,9 +14,9 @@
buildPythonPackage rec {
  pname = "formencode";
  version = "2.1.0";
  format = "setuptools";
  pyproject = true;

  disabled = isPy27;
  disabled = pythonOlder "3.7";

  src = fetchPypi {
    pname = "FormEncode";
@@ -27,9 +28,12 @@ buildPythonPackage rec {
    sed -i '/setuptools_scm_git_archive/d' setup.py
  '';

  nativeBuildInputs = [ setuptools-scm ];
  build-system = [ setuptools-scm ];

  propagatedBuildInputs = [ six ];
  dependencies = [
    six
    legacy-cgi
  ];

  nativeCheckInputs = [
    dnspython
@@ -43,10 +47,10 @@ buildPythonPackage rec {
    "test_unicode_ascii_subgroup"
  ];

  meta = with lib; {
  meta = {
    description = "FormEncode validates and converts nested structures";
    homepage = "http://formencode.org";
    license = licenses.mit;
    license = lib.licenses.mit;
    maintainers = [ ];
  };
}