Unverified Commit 4d930843 authored by Fabian Affolter's avatar Fabian Affolter Committed by GitHub
Browse files

Merge pull request #199656 from r-ryantm/auto-update/python3.10-PuLP

python310Packages.pulp: 2.6.0 -> 2.7.0
parents 3a835b51 90275986
Loading
Loading
Loading
Loading
+33 −13
Original line number Diff line number Diff line
{ lib
, fetchPypi
, amply
, buildPythonPackage
, fetchFromGitHub
, pyparsing
, amply
, pythonOlder
, pytestCheckHook
}:

buildPythonPackage rec {
  pname = "PuLP";
  version = "2.6.0";
  pname = "pulp";
  version = "2.7.0";
  format = "setuptools";

  src = fetchPypi {
    inherit pname version;
    sha256 = "4b4f7e1e954453e1b233720be23aea2f10ff068a835ac10c090a93d8e2eb2e8d";
  disabled = pythonOlder "3.7";

  src = fetchFromGitHub {
    owner = "coin-or";
    repo = pname;
    rev = "refs/tags/${version}";
    hash = "sha256-j0f6OiscJyTqPNyLp0qWRjCGLWuT3HdU1S/sxpnsiMo=";
  };

  propagatedBuildInputs = [ pyparsing amply ];
  propagatedBuildInputs = [
    amply
    pyparsing
  ];

  checkInputs = [
    pytestCheckHook
  ];

  # only one test that requires an extra
  doCheck = false;
  pythonImportsCheck = [ "pulp" ];
  pythonImportsCheck = [
    "pulp"
  ];

  disabledTests = [
    # The solver is not available
    "PULP_CBC_CMDTest"
    "test_examples"
  ];

  meta = with lib; {
    description = "Module to generate  generate MPS or LP files";
    homepage = "https://github.com/coin-or/pulp";
    description = "PuLP is an LP modeler written in python";
    maintainers = with maintainers; [ teto ];
    license = licenses.mit;
    maintainers = with maintainers; [ teto ];
  };
}