Unverified Commit d3b9ef59 authored by Moraxyc's avatar Moraxyc
Browse files

python3Packages.python-twitter: fix

parent a846d964
Loading
Loading
Loading
Loading
+11 −3
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  fetchpatch,
  filetype,
  future,
  hypothesis,
  lib,
  pytestCheckHook,
  pythonOlder,
  requests,
  requests-oauthlib,
  responses,
  setuptools,
}:

buildPythonPackage rec {
  pname = "python-twitter";
  version = "3.5";
  format = "setuptools";

  pyproject = true;
  build-system = [ setuptools ];

  disabled = pythonOlder "3.7";

@@ -35,7 +38,7 @@ buildPythonPackage rec {
    })
  ];

  propagatedBuildInputs = [
  dependencies = [
    filetype
    future
    requests
@@ -53,6 +56,11 @@ buildPythonPackage rec {
      --replace "'pytest-runner'" ""
  '';

  disabledTests = [
    # AttributeError: 'FileCacheTest' object has no attribute 'assert_'
    "test_filecache"
  ];

  pythonImportsCheck = [ "twitter" ];

  meta = with lib; {