3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/transitions/default.nix
2021-10-06 16:05:28 +00:00

46 lines
863 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, six
, pygraphviz
, pytestCheckHook
, mock
, graphviz
, pycodestyle
, fontconfig
}:
buildPythonPackage rec {
pname = "transitions";
version = "0.8.10";
src = fetchPypi {
inherit pname version;
sha256 = "b0385975a842e885c1a55c719d2f90164471665794d39d51f9eb3f11e1d9c8ac";
};
propagatedBuildInputs = [
six
pygraphviz # optional
];
checkInputs = [
pytestCheckHook
mock
graphviz
pycodestyle
];
preCheck = ''
export FONTCONFIG_FILE=${fontconfig.out}/etc/fonts/fonts.conf
export HOME=$TMPDIR
'';
meta = with lib; {
homepage = "https://github.com/pytransitions/transitions";
description = "A lightweight, object-oriented finite state machine implementation in Python";
license = licenses.mit;
maintainers = with maintainers; [ dotlambda ];
};
}