1{ stdenv, buildPythonPackage, fetchPypi
2, six, nose, mock, dill, pycodestyle }:
3
4buildPythonPackage rec {
5 pname = "transitions";
6 version = "0.8.2";
7
8 src = fetchPypi {
9 inherit pname version;
10 sha256 = "0j3pswbckrhd6plblb0bwzsbvk50nqmxq6dvjclvcr5cljzs7xvg";
11 };
12
13 postPatch = ''
14 substituteInPlace setup.py --replace "dill<0.2.7" dill
15 '';
16
17 propagatedBuildInputs = [ six ];
18
19 checkInputs = [ nose mock dill pycodestyle ];
20
21 checkPhase = ''
22 nosetests
23 '';
24
25 meta = with stdenv.lib; {
26 homepage = "https://github.com/pytransitions/transitions";
27 description = "A lightweight, object-oriented finite state machine implementation in Python";
28 license = licenses.mit;
29 maintainers = with maintainers; [ dotlambda ];
30 };
31}