Commit aef73b6f authored by Fabian Affolter's avatar Fabian Affolter
Browse files

python310Packages.vcrpy: remove obsolete inputs

parent 838857d1
Loading
Loading
Loading
Loading
+30 −24
Original line number Diff line number Diff line
{ buildPythonPackage
, lib
, isPy27
, six
{ lib
, buildPythonPackage
, fetchPypi
, pyyaml
, mock
, contextlib2
, wrapt
, pytest
, pytest-httpbin
, yarl
, pytestCheckHook
, pythonOlder
, pythonAtLeast
, pyyaml
, six
, yarl
, wrapt
}:

buildPythonPackage rec {
  pname = "vcrpy";
  version = "4.2.1";
  format = "setuptools";

  disabled = isPy27;
  disabled = pythonOlder "3.7";

  src = fetchPypi {
    inherit pname version;
    sha256 = "sha256-fNPoGixJLgHCgfGAvMKoa1ILFz0rZWy12J2ZR1Qj4BM=";
    hash = "sha256-fNPoGixJLgHCgfGAvMKoa1ILFz0rZWy12J2ZR1Qj4BM=";
  };

  propagatedBuildInputs = [
    pyyaml
    six
    yarl
    wrapt
  ];

  nativeCheckInputs = [
    pytest
    pytest-httpbin
    pytestCheckHook
  ];

  propagatedBuildInputs = [
    pyyaml
    wrapt
    six
  ]
  ++ lib.optionals (pythonOlder "3.3") [ contextlib2 mock ]
  ++ lib.optionals (pythonAtLeast "3.4") [ yarl ];
  disabledTestPaths = [
    "tests/integration"
  ];

  checkPhase = ''
    py.test --ignore=tests/integration -k "not TestVCRConnection"
  '';
  disabledTests = [
    "TestVCRConnection"
  ];

  pythonImportsCheck = [
    "vcr"
  ];

  meta = with lib; {
    description = "Automatically mock your HTTP interactions to simplify and speed up testing";
    homepage = "https://github.com/kevin1024/vcrpy";
    changelog = "https://github.com/kevin1024/vcrpy/releases/tag/v${version}";
    license = licenses.mit;
    maintainers = with maintainers; [ ];
  };
}