nixpkgs/pkgs/development/python-modules/transitions/default.nix
2020-06-11 10:00:23 +02:00

32 lines
769 B
Nix

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