Commit c87e3dc9 authored by Fabian Affolter's avatar Fabian Affolter
Browse files

python310Packages.invocations: add changelog to meta

- disable on unsupported Python releases
- update postPatch section
parent 6f44a063
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -3,6 +3,7 @@
, blessings
, fetchFromGitHub
, invoke
, pythonOlder
, releases
, semantic-version
, tabulate
@@ -15,17 +16,18 @@ buildPythonPackage rec {
  version = "3.0.2";
  format = "setuptools";

  disabled = pythonOlder "3.6";

  src = fetchFromGitHub {
    owner = "pyinvoke";
    repo = pname;
    rev = version;
    rev = "refs/tags/${version}";
    hash = "sha256-sXMxTOi0iCz7Zq0lXkpproUtkId5p/GCqP1TvgqYlME=";
  };

  postPatch = ''
    substituteInPlace setup.py \
      --replace "semantic_version>=2.4,<2.7" "semantic_version" \
      --replace "tabulate==0.7.5" "tabulate"
      --replace "semantic_version>=2.4,<2.7" "semantic_version"
  '';

  propagatedBuildInputs = [
@@ -48,6 +50,7 @@ buildPythonPackage rec {
  meta = with lib; {
    description = "Common/best-practice Invoke tasks and collections";
    homepage = "https://invocations.readthedocs.io/";
    changelog = "https://github.com/pyinvoke/invocations/blob/${version}/docs/changelog.rst";
    license = licenses.bsd2;
    maintainers = with maintainers; [ samuela ];
  };