2021-02-13 20:16:04 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, six
|
|
|
|
, pygraphviz
|
|
|
|
, pytestCheckHook
|
|
|
|
, mock
|
|
|
|
, graphviz
|
|
|
|
, pycodestyle
|
2021-04-07 11:18:50 +01:00
|
|
|
, fontconfig
|
2021-02-13 20:16:04 +00:00
|
|
|
}:
|
2018-01-27 08:33:18 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "transitions";
|
2021-09-03 12:56:23 +01:00
|
|
|
version = "0.8.9";
|
2018-01-27 08:33:18 +00:00
|
|
|
|
2021-02-13 20:16:04 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-09-03 12:56:23 +01:00
|
|
|
sha256 = "fc2ec6d6b6f986cd7e28e119eeb9ba1c9cc51ab4fbbdb7f2dedad01983fd2de0";
|
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
|
|
|
|
];
|
|
|
|
|
2021-04-07 11:18:50 +01:00
|
|
|
preCheck = ''
|
|
|
|
export FONTCONFIG_FILE=${fontconfig.out}/etc/fonts/fonts.conf
|
2021-06-29 20:19:40 +01:00
|
|
|
export HOME=$TMPDIR
|
2021-04-07 11:18:50 +01:00
|
|
|
'';
|
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 ];
|
|
|
|
};
|
|
|
|
}
|