Unverified Commit d1ebe90a authored by Emily's avatar Emily Committed by GitHub
Browse files

Merge pull request #330290 from pyrox0/denose/braintree

python312Packages.braintree: 4.14.0 -> 4.29.0; remove nose and modernize
parents f64eced0 d3dd5a36
Loading
Loading
Loading
Loading
+17 −19
Original line number Diff line number Diff line
@@ -2,44 +2,42 @@
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  nose,
  pytestCheckHook,
  pythonOlder,
  requests,
  setuptools,
}:

buildPythonPackage rec {
  pname = "braintree";
  version = "4.14.0";
  format = "setuptools";

  disabled = pythonOlder "3.7";
  version = "4.29.0";
  pyproject = true;

  src = fetchFromGitHub {
    owner = pname;
    owner = "braintree";
    repo = "braintree_python";
    rev = version;
    hash = "sha256-qeqQX+qyy78sLe+46CA4D6VAxNHUVahS4LMYdGDzc2k=";
    hash = "sha256-5MF8W2zUVvNiOnmszgJkMDmeYLZ6ppFHqmH6dmlCzQY=";
  };

  propagatedBuildInputs = [ requests ];
  build-system = [ setuptools ];

  nativeCheckInputs = [
    nose
    pytestCheckHook
  ];
  dependencies = [ requests ];

  nativeCheckInputs = [ pytestCheckHook ];

  pythonImportsCheck = [ "braintree" ];

  disabledTestPaths = [
    # Don't test integrations
    "tests/integration"
  pytestFlagsArray = [
    "tests/"
    "tests/fixtures"
    "tests/unit"
    "tests/integration/test_credentials_parser.py"
  ];

  meta = with lib; {
  meta = {
    description = "Python library for integration with Braintree";
    homepage = "https://github.com/braintree/braintree_python";
    license = licenses.mit;
    maintainers = with maintainers; [ ];
    license = lib.licenses.mit;
    maintainers = [ ];
  };
}