python312Packages.actdiag: refactor
This commit is contained in:
parent
c429ad9c8f
commit
d425678397
1 changed files with 19 additions and 9 deletions
|
@ -2,7 +2,7 @@
|
||||||
, blockdiag
|
, blockdiag
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, nose
|
, pynose
|
||||||
, pytestCheckHook
|
, pytestCheckHook
|
||||||
, pythonOlder
|
, pythonOlder
|
||||||
, setuptools
|
, setuptools
|
||||||
|
@ -11,24 +11,27 @@
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "actdiag";
|
pname = "actdiag";
|
||||||
version = "3.0.0";
|
version = "3.0.0";
|
||||||
format = "setuptools";
|
pyproject = true;
|
||||||
|
|
||||||
disabled = pythonOlder "3.7";
|
disabled = pythonOlder "3.7";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "blockdiag";
|
owner = "blockdiag";
|
||||||
repo = pname;
|
repo = "actdiag";
|
||||||
rev = version;
|
rev = "refs/tags/${version}";
|
||||||
hash = "sha256-WmprkHOgvlsOIg8H77P7fzEqxGnj6xaL7Df7urRkg3o=";
|
hash = "sha256-WmprkHOgvlsOIg8H77P7fzEqxGnj6xaL7Df7urRkg3o=";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
build-system = [
|
||||||
blockdiag
|
|
||||||
setuptools
|
setuptools
|
||||||
];
|
];
|
||||||
|
|
||||||
|
propagatedBuildInputs = [
|
||||||
|
blockdiag
|
||||||
|
];
|
||||||
|
|
||||||
nativeCheckInputs = [
|
nativeCheckInputs = [
|
||||||
nose
|
pynose
|
||||||
pytestCheckHook
|
pytestCheckHook
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -36,16 +39,23 @@ buildPythonPackage rec {
|
||||||
"src/actdiag/tests/"
|
"src/actdiag/tests/"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
disabledTests = [
|
||||||
|
# AttributeError: 'TestRstDirectives' object has no attribute 'assertRegexpMatches'
|
||||||
|
"svg"
|
||||||
|
"noviewbox"
|
||||||
|
];
|
||||||
|
|
||||||
pythonImportsCheck = [
|
pythonImportsCheck = [
|
||||||
"actdiag"
|
"actdiag"
|
||||||
];
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Generate activity-diagram image from spec-text file (similar to Graphviz)";
|
description = "Generate activity-diagram image from spec-text file (similar to Graphviz)";
|
||||||
mainProgram = "actdiag";
|
|
||||||
homepage = "http://blockdiag.com/";
|
homepage = "http://blockdiag.com/";
|
||||||
|
changelog = "https://github.com/blockdiag/actdiag/blob/${version}/CHANGES.rst";
|
||||||
license = licenses.asl20;
|
license = licenses.asl20;
|
||||||
platforms = platforms.unix;
|
|
||||||
maintainers = with maintainers; [ bjornfor ];
|
maintainers = with maintainers; [ bjornfor ];
|
||||||
|
mainProgram = "actdiag";
|
||||||
|
platforms = platforms.unix;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue