Unverified Commit a6f3ef6c authored by Sandro Jäckel's avatar Sandro Jäckel Committed by GitHub
Browse files

Merge pull request #204400 from dotlambda/python2Packages-remove

parents 37514424 0fa639e2
Loading
Loading
Loading
Loading
+0 −26
Original line number Diff line number Diff line
{ lib
, buildPythonPackage
, fetchPypi
, cheetah
, nose
}:

buildPythonPackage rec {
  pname = "TurboCheetah";
  version = "1.0";

  src = fetchPypi {
    inherit pname version;
    sha256 = "9e4c7ecb0d061bfb58281363ee1b09337083f013a8b4d0355326a5d8668f450c";
  };

  propagatedBuildInputs = [ cheetah ];

  checkInputs = [ nose ];

  meta = {
    description = "TurboGears plugin to support use of Cheetah templates";
    homepage = "http://docs.turbogears.org/TurboCheetah";
    license = lib.licenses.mit;
  };
}
+0 −33
Original line number Diff line number Diff line
{ lib
, buildPythonPackage
, fetchPypi
, markdown
, isPy3k
, TurboCheetah
}:

buildPythonPackage rec {
  pname = "cheetah";
  version = "2.4.4";

  disabled = isPy3k;

  src = fetchPypi {
    inherit pname version;
    sha256 = "be308229f0c1e5e5af4f27d7ee06d90bb19e6af3059794e5fd536a6f29a9b550";
  };

  propagatedBuildInputs = [ markdown ];

  doCheck = false; # Circular dependency

  checkInputs = [
    TurboCheetah
  ];

  meta = {
    homepage = "http://www.cheetahtemplate.org/";
    description = "A template engine and code generation tool";
    license = lib.licenses.mit;
  };
}
+0 −39
Original line number Diff line number Diff line
{ lib, stdenv, buildPythonPackage, fetchFromGitHub
, pytestCheckHook, pytest-benchmark, enum34, numpy, arrow, ruamel-yaml
}:

buildPythonPackage rec {
  pname   = "construct";
  version = "2.10.54";

  # no tests in PyPI tarball
  src = fetchFromGitHub {
    owner  = pname;
    repo   = pname;
    rev    = "v${version}";
    sha256 = "1mqspsn6bf3ibvih1zna2glkg8iw7vy5zg9gzg0d1m8zcndk2c48";
  };

  checkInputs = [ pytestCheckHook enum34 numpy ];

  # these have dependencies that are broken on Python 2
  disabledTestPaths = [
    "tests/gallery/test_gallery.py"
    "tests/test_benchmarks.py"
    "tests/test_compiler.py"
  ];

  disabledTests = [
    "test_benchmarks"
    "test_timestamp"
  ] ++ lib.optionals stdenv.isDarwin [
    "test_multiprocessing"
  ];

  meta = with lib; {
    description = "Powerful declarative parser (and builder) for binary data";
    homepage = "https://construct.readthedocs.org/";
    license = licenses.mit;
    maintainers = with maintainers; [ dotlambda ];
  };
}
+0 −52
Original line number Diff line number Diff line
{ lib
, buildPythonPackage
, fetchPypi
, tornado
, requests
, httplib2
, sure
, nose
, nose-exclude
, coverage
, rednose
, nose-randomly
, six
, mock
}:

buildPythonPackage rec {
  pname = "httpretty";
  version = "0.9.7";

  # drop this for version > 0.9.7
  # Flaky tests: https://github.com/gabrielfalcao/HTTPretty/pull/394
  doCheck = lib.versionAtLeast version "0.9.8";

  src = fetchPypi {
    inherit pname version;
    sha256 = "66216f26b9d2c52e81808f3e674a6fb65d4bf719721394a1a9be926177e55fbe";
  };

  propagatedBuildInputs = [ six ];

  checkInputs = [ nose sure coverage mock rednose
    # Following not declared in setup.py
    nose-randomly requests tornado httplib2 nose-exclude
  ];

  __darwinAllowLocalNetworking = true;

  # Those flaky tests are failing intermittently on all platforms
  NOSE_EXCLUDE = lib.concatStringsSep "," [
    "tests.functional.test_httplib2.test_callback_response"
    "tests.functional.test_requests.test_streaming_responses"
    "tests.functional.test_httplib2.test_callback_response"
    "tests.functional.test_requests.test_httpretty_should_allow_adding_and_overwritting_by_kwargs_u2"
  ];

  meta = with lib; {
    homepage = "https://httpretty.readthedocs.org/";
    description = "HTTP client request mocking tool";
    license = licenses.mit;
  };
}
+0 −33
Original line number Diff line number Diff line
{ lib
, buildPythonPackage
, fetchPypi
, setuptools
, nose
, pyyaml
, pythonOlder
, importlib-metadata
}:

buildPythonPackage rec {
  pname = "Markdown";
  version = "3.1.1";

  src = fetchPypi {
    inherit pname version;
    sha256 = "2e50876bcdd74517e7b71f3e7a76102050edec255b3983403f1a63e7c8a41e7a";
  };

  propagatedBuildInputs = [
    setuptools
  ] ++ lib.optionals (pythonOlder "3.8") [
    importlib-metadata
  ];

  checkInputs = [ nose pyyaml ];

  meta = {
    description = "A Python implementation of John Gruber's Markdown with Extension support";
    homepage = "https://github.com/Python-Markdown/markdown";
    license = lib.licenses.bsd3;
  };
}
Loading