2021-02-13 20:16:04 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, six
|
|
|
|
, pygraphviz
|
|
|
|
, pytestCheckHook
|
|
|
|
, mock
|
|
|
|
, graphviz
|
|
|
|
, pycodestyle
|
|
|
|
}:
|
2018-01-27 08:33:18 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "transitions";
|
2021-02-13 20:16:04 +00:00
|
|
|
version = "0.8.7";
|
2018-01-27 08:33:18 +00:00
|
|
|
|
2021-02-13 20:16:04 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "8c60ec0828cd037820726283cad5d4d77a5e31514e058b51250420e9873e9bc7";
|
2018-01-27 08:33:18 +00:00
|
|
|
};
|
|
|
|
|
2021-02-13 20:16:04 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
six
|
|
|
|
pygraphviz # optional
|
|
|
|
];
|
2018-01-27 08:33:18 +00:00
|
|
|
|
2021-02-13 20:16:04 +00:00
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
mock
|
|
|
|
graphviz
|
|
|
|
pycodestyle
|
|
|
|
];
|
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
# Fontconfig error: Cannot load default config file
|
|
|
|
"test_diagram"
|
|
|
|
];
|
2018-01-27 08:33:18 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/pytransitions/transitions";
|
2018-01-27 08:33:18 +00:00
|
|
|
description = "A lightweight, object-oriented finite state machine implementation in Python";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ dotlambda ];
|
|
|
|
};
|
|
|
|
}
|