Commit fc5e8862 authored by Ben Darwin's avatar Ben Darwin
Browse files

python311Packages.duecredit: 0.9.3 -> 0.10.1

parent c06e9b08
Loading
Loading
Loading
Loading
+22 −8
Original line number Diff line number Diff line
@@ -6,25 +6,39 @@
, pytestCheckHook
, vcrpy
, citeproc-py
, looseversion
, requests
}:

buildPythonPackage rec {
  pname = "duecredit";
  version = "0.9.3";
  version = "0.10.1";
  pyproject = true;

  disabled = pythonOlder "3.8";

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-+DeOqQ0R+XUlkuSHySFj2oDZqf85mT64PAi/LtTso3I=";
    hash = "sha256-IQgrmEclF/USrTjn5A0BbJ5GHgXh1R/KPJx4K4FuUuY=";
  };

  nativeBuildInputs = [ setuptools ];
  propagatedBuildInputs = [ citeproc-py requests ];
  postPatch = ''
    substituteInPlace tox.ini  \
      --replace-fail "--cov=duecredit" ""  \
      --replace-fail "--cov-config=tox.ini" ""
  '';

  nativeCheckInputs = [ pytestCheckHook vcrpy ];
  nativeBuildInputs = [ setuptools ];
  propagatedBuildInputs = [
    citeproc-py
    looseversion
    requests
  ];

  nativeCheckInputs = [
    pytestCheckHook
    vcrpy
  ];
  disabledTests = [ "test_import_doi" ];  # tries to access network

  preCheck = ''
@@ -33,12 +47,12 @@ buildPythonPackage rec {

  pythonImportsCheck = [ "duecredit" ];

  meta = with lib; {
  meta = {
    homepage = "https://github.com/duecredit/duecredit";
    description = "Simple framework to embed references in code";
    mainProgram = "duecredit";
    changelog = "https://github.com/duecredit/duecredit/releases/tag/${version}";
    license = licenses.bsd2;
    maintainers = with maintainers; [ bcdarwin ];
    license = lib.licenses.bsd2;
    maintainers = [ lib.maintainers.bcdarwin ];
  };
}