about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/transitions/default.nix
blob: 2dda33fd968296afc6b0992d7f416e1c05ee56b4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{ lib, buildPythonPackage, fetchFromGitHub
, six, pytestCheckHook, mock, dill, pycodestyle }:

buildPythonPackage rec {
  pname = "transitions";
  version = "0.8.6";

  # test_codestyle.py fails in PyPI sdist
  src = fetchFromGitHub {
    owner = "pytransitions";
    repo = "transitions";
    rev = version;
    sha256 = "1d913hzzyqhdhhbkbvjw65dqkajrw50a4sxhyxk0jlg8pcs7bs7v";
  };

  propagatedBuildInputs = [ six ];

  checkInputs = [ pytestCheckHook mock dill pycodestyle ];

  meta = with 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 ];
  };
}