32 lines
769 B
Nix
32 lines
769 B
Nix
{ stdenv, buildPythonPackage, fetchPypi
|
|
, six, nose, mock, dill, pycodestyle }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "transitions";
|
|
version = "0.7.2";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "5566c9d32e438ee9eb1f046e3ac1a0b2689f32807b47859210162084d4c84ab7";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|