diff options
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/transitions/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/python-modules/transitions/default.nix | 40 |
1 files changed, 29 insertions, 11 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/transitions/default.nix b/nixpkgs/pkgs/development/python-modules/transitions/default.nix index 2dda33fd9682..c469875728cd 100644 --- a/nixpkgs/pkgs/development/python-modules/transitions/default.nix +++ b/nixpkgs/pkgs/development/python-modules/transitions/default.nix @@ -1,21 +1,39 @@ -{ lib, buildPythonPackage, fetchFromGitHub -, six, pytestCheckHook, mock, dill, pycodestyle }: +{ lib +, buildPythonPackage +, fetchPypi +, six +, pygraphviz +, pytestCheckHook +, mock +, graphviz +, pycodestyle +, fontconfig +}: buildPythonPackage rec { pname = "transitions"; - version = "0.8.6"; + version = "0.8.8"; - # test_codestyle.py fails in PyPI sdist - src = fetchFromGitHub { - owner = "pytransitions"; - repo = "transitions"; - rev = version; - sha256 = "1d913hzzyqhdhhbkbvjw65dqkajrw50a4sxhyxk0jlg8pcs7bs7v"; + src = fetchPypi { + inherit pname version; + sha256 = "sha256-56hrMaFhp2Ez8Ymzrp2tJ1WoDqTB4O7hgFZI0CH7Z30="; }; - propagatedBuildInputs = [ six ]; + propagatedBuildInputs = [ + six + pygraphviz # optional + ]; - checkInputs = [ pytestCheckHook mock dill pycodestyle ]; + checkInputs = [ + pytestCheckHook + mock + graphviz + pycodestyle + ]; + + preCheck = '' + export FONTCONFIG_FILE=${fontconfig.out}/etc/fonts/fonts.conf + ''; meta = with lib; { homepage = "https://github.com/pytransitions/transitions"; |