Unverified Commit 2125339f authored by Fabian Affolter's avatar Fabian Affolter Committed by GitHub
Browse files

python311Packages.aioopenexchangerates: modernize

parent 5e60de4c
Loading
Loading
Loading
Loading
+8 −8
Original line number Diff line number Diff line
@@ -13,17 +13,22 @@
buildPythonPackage rec {
  pname = "aioopenexchangerates";
  version = "0.4.4";
  format = "pyproject";
  pyproject = true;

  disabled = pythonOlder "3.9";

  src = fetchFromGitHub {
    owner = "MartinHjelmare";
    repo = pname;
    repo = "aioopenexchangerates";
    rev = "refs/tags/v${version}";
    hash = "sha256-Wts2qVTZFTLR2Ru3bSiobGOyegiNoGl3xOrZdDRh7iU=";
  };

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

  nativeBuildInputs = [
    poetry-core
  ];
@@ -39,11 +44,6 @@ buildPythonPackage rec {
    pytestCheckHook
  ];

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

  pythonImportsCheck = [
    "aioopenexchangerates"
  ];
@@ -51,7 +51,7 @@ buildPythonPackage rec {
  meta = with lib; {
    description = "Library for the Openexchangerates API";
    homepage = "https://github.com/MartinHjelmare/aioopenexchangerates";
    changelog = "https://github.com/MartinHjelmare/aioopenexchangerates/blob/vv${version}/CHANGELOG.md";
    changelog = "https://github.com/MartinHjelmare/aioopenexchangerates/blob/v${version}/CHANGELOG.md";
    license = with licenses; [ asl20 ];
    maintainers = with maintainers; [ fab ];
  };