Commit 3f038d20 authored by Fabian Affolter's avatar Fabian Affolter
Browse files

python311Packages.simpful: 2.11.0 -> 2.11.1

Diff: aresio/simpful@refs/tags/2.11.0...2.11.1

Changelog: https://github.com/aresio/simpful/releases/tag/2.11.1
parent 9ec596ce
Loading
Loading
Loading
Loading
+15 −11
Original line number Diff line number Diff line
@@ -2,10 +2,12 @@
, aiohttp
, aioresponses
, buildPythonPackage
, ciso8601
, click
, fetchFromGitHub
, pydantic
, mashumaro
, poetry-core
, pytest-asyncio
, pytestCheckHook
, pythonOlder
, yarl
@@ -13,39 +15,41 @@

buildPythonPackage rec {
  pname = "aiortm";
  version = "0.6.4";
  format = "pyproject";
  version = "0.8.5";
  pyproject = true;

  disabled = pythonOlder "3.9";

  src = fetchFromGitHub {
    owner = "MartinHjelmare";
    repo = pname;
    repo = "aiortm";
    rev = "refs/tags/v${version}";
    hash = "sha256-PFZ8B2Wtjg3xUFYcnthTW5QXLk//lFH25jwpF7hygxQ=";
    hash = "sha256-qFjMNU/sUFtCzBNG7vauz2p1BSr9ra81kyUtaz5vSTg=";
  };

  postPatch = ''
    substituteInPlace pyproject.toml \
      --replace " --cov=aiortm --cov-report=term-missing:skip-covered" ""
  '';

  nativeBuildInputs = [
    poetry-core
  ];

  propagatedBuildInputs = [
    aiohttp
    ciso8601
    click
    pydantic
    mashumaro
    yarl
  ];

  nativeCheckInputs = [
    aioresponses
    pytest-asyncio
    pytestCheckHook
  ];

  postPatch = ''
    substituteInPlace pyproject.toml \
      --replace " --cov=aiortm --cov-report=term-missing:skip-covered" ""
  '';

  pythonImportsCheck = [
    "aiortm"
  ];
+10 −14
Original line number Diff line number Diff line
@@ -6,33 +6,29 @@
, numpy
, pytestCheckHook
, pythonOlder
, requests
, scipy
, seaborn
, requests
, setuptools
}:

buildPythonPackage rec {
  pname = "simpful";
  version = "2.11.0";
  format = "setuptools";
  version = "2.11.1";
  pyproject = true;

  disabled = pythonOlder "3.7";

  src = fetchFromGitHub {
    owner = "aresio";
    repo = pname;
    repo = "simpful";
    rev = "refs/tags/${version}";
    hash = "sha256-1CU/Iz83CKRx7dsOTGfdJm98TUfc2kxCHKIEUXP36HQ=";
    hash = "sha256-54WkKnPB3xA2CaOpmasqxgDoga3uAqoC1nOivytXmGY=";
  };

  # patch dated use of private matplotlib interface
  # https://github.com/aresio/simpful/issues/22
  postPatch = ''
    substituteInPlace simpful/simpful.py \
      --replace \
        "next(ax._get_lines.prop_cycler)['color']" \
        "ax._get_lines.get_next_color()"
  '';
  nativeBuildInputs = [
    setuptools
  ];

  propagatedBuildInputs = [
    numpy
@@ -56,11 +52,11 @@ buildPythonPackage rec {
  ];

  meta = with lib; {
    broken = stdenv.isDarwin;
    description = "Library for fuzzy logic";
    homepage = "https://github.com/aresio/simpful";
    changelog = "https://github.com/aresio/simpful/releases/tag/${version}";
    license = with licenses; [ lgpl3Only ];
    maintainers = with maintainers; [ fab ];
    broken = stdenv.isDarwin;
  };
}