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

python312Packages.actdiag: refactor

parent c429ad9c
Loading
Loading
Loading
Loading
+18 −8
Original line number Diff line number Diff line
@@ -2,7 +2,7 @@
, blockdiag
, buildPythonPackage
, fetchFromGitHub
, nose
, pynose
, pytestCheckHook
, pythonOlder
, setuptools
@@ -11,24 +11,27 @@
buildPythonPackage rec {
  pname = "actdiag";
  version = "3.0.0";
  format = "setuptools";
  pyproject = true;

  disabled = pythonOlder "3.7";

  src = fetchFromGitHub {
    owner = "blockdiag";
    repo = pname;
    rev = version;
    repo = "actdiag";
    rev = "refs/tags/${version}";
    hash = "sha256-WmprkHOgvlsOIg8H77P7fzEqxGnj6xaL7Df7urRkg3o=";
  };

  build-system = [
    setuptools
  ];

  propagatedBuildInputs = [
    blockdiag
    setuptools
  ];

  nativeCheckInputs = [
    nose
    pynose
    pytestCheckHook
  ];

@@ -36,16 +39,23 @@ buildPythonPackage rec {
    "src/actdiag/tests/"
  ];

  disabledTests = [
    # AttributeError: 'TestRstDirectives' object has no attribute 'assertRegexpMatches'
    "svg"
    "noviewbox"
  ];

  pythonImportsCheck = [
    "actdiag"
  ];

  meta = with lib; {
    description = "Generate activity-diagram image from spec-text file (similar to Graphviz)";
    mainProgram = "actdiag";
    homepage = "http://blockdiag.com/";
    changelog = "https://github.com/blockdiag/actdiag/blob/${version}/CHANGES.rst";
    license = licenses.asl20;
    platforms = platforms.unix;
    maintainers = with maintainers; [ bjornfor ];
    mainProgram = "actdiag";
    platforms = platforms.unix;
  };
}