@@ -1,21 +1,39 @@
1−{ lib, buildPythonPackage, fetchFromGitHub
2−, six, pytestCheckHook, mock, dill, pycodestyle }:
1+{ lib
2+, buildPythonPackage
3+, fetchPypi
4+, six
5+, pygraphviz
6+, pytestCheckHook
7+, mock
8+, graphviz
9+, pycodestyle
10+}:
311
412buildPythonPackage rec {
513 pname = "transitions";
6− version = "0.8.6";
14+ version = "0.8.7";
715
8− # test_codestyle.py fails in PyPI sdist
9− src = fetchFromGitHub {
10− owner = "pytransitions";
11− repo = "transitions";
12− rev = version;
13− sha256 = "1d913hzzyqhdhhbkbvjw65dqkajrw50a4sxhyxk0jlg8pcs7bs7v";
16+ src = fetchPypi {
17+ inherit pname version;
18+ sha256 = "8c60ec0828cd037820726283cad5d4d77a5e31514e058b51250420e9873e9bc7";
1419 };
1520
16− propagatedBuildInputs = [ six ];
21+ propagatedBuildInputs = [
22+ six
23+ pygraphviz # optional
24+ ];
1725
18− checkInputs = [ pytestCheckHook mock dill pycodestyle ];
26+ checkInputs = [
27+ pytestCheckHook
28+ mock
29+ graphviz
30+ pycodestyle
31+ ];
32+
33+ disabledTests = [
34+ # Fontconfig error: Cannot load default config file
35+ "test_diagram"
36+ ];
1937
2038 meta = with lib; {
2139 homepage = "https://github.com/pytransitions/transitions";