2018-01-27 08:33:18 +00:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi
|
|
|
|
, six, nose, mock, dill, pycodestyle }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "transitions";
|
2018-05-27 23:10:04 +01:00
|
|
|
version = "0.6.8";
|
2018-01-27 08:33:18 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-05-27 23:10:04 +01:00
|
|
|
sha256 = "155de243bd935959ae66cdab5c4c1a92f2bbf48555c6f994365935a0a9fffc1b";
|
2018-01-27 08:33:18 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py --replace "dill<0.2.7" dill
|
|
|
|
'';
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ six ];
|
|
|
|
|
|
|
|
checkInputs = [ nose mock dill pycodestyle ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
nosetests
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.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 ];
|
|
|
|
};
|
|
|
|
}
|