Commit 68001ad1 authored by Robert Schütz's avatar Robert Schütz
Browse files

python3Packages.moreorless: modernize

parent 121fb574
Loading
Loading
Loading
Loading
+8 −9
Original line number Diff line number Diff line
@@ -5,16 +5,13 @@
  fetchFromGitHub,
  parameterized,
  pytestCheckHook,
  pythonOlder,
  setuptools-scm,
}:

buildPythonPackage rec {
  pname = "moreorless";
  version = "0.5.0";
  format = "setuptools";

  disabled = pythonOlder "3.8";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "thatch";
@@ -23,9 +20,9 @@ buildPythonPackage rec {
    hash = "sha256-VCvvPxDWriaeKeRaj/YbPLPfNL7fipGwCydr6K0HMjc=";
  };

  nativeBuildInputs = [ setuptools-scm ];
  build-system = [ setuptools-scm ];

  propagatedBuildInputs = [ click ];
  dependencies = [ click ];

  nativeCheckInputs = [
    parameterized
@@ -36,14 +33,16 @@ buildPythonPackage rec {

  pytestFlagsArray = [
    "moreorless/tests/click.py"
    "moreorless/tests/combined.py"
    "moreorless/tests/general.py"
    "moreorless/tests/patch.py"
  ];

  meta = with lib; {
  meta = {
    changelog = "https://github.com/thatch/moreorless/releases/tag/${src.tag}";
    description = "Wrapper to make difflib.unified_diff more fun to use";
    homepage = "https://github.com/thatch/moreorless/";
    license = licenses.mit;
    maintainers = with maintainers; [ fab ];
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ fab ];
  };
}