nixpkgs/pkgs/development/python-modules/transitions/default.nix
2018-01-27 11:42:13 +01:00

31 lines
755 B
Nix

{ stdenv, buildPythonPackage, fetchPypi
, six, nose, mock, dill, pycodestyle }:
buildPythonPackage rec {
pname = "transitions";
version = "0.6.4";
src = fetchPypi {
inherit pname version;
sha256 = "1ikxsjg7vil0yhiwhiimnjzcb1ig6g6g79sdhs9v8rnrszk1mi2n";
};
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 ];
};
}