Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 44 lines 825 B view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, six 5, pygraphviz 6, pytestCheckHook 7, mock 8, graphviz 9, pycodestyle 10, fontconfig 11}: 12 13buildPythonPackage rec { 14 pname = "transitions"; 15 version = "0.8.8"; 16 17 src = fetchPypi { 18 inherit pname version; 19 sha256 = "sha256-56hrMaFhp2Ez8Ymzrp2tJ1WoDqTB4O7hgFZI0CH7Z30="; 20 }; 21 22 propagatedBuildInputs = [ 23 six 24 pygraphviz # optional 25 ]; 26 27 checkInputs = [ 28 pytestCheckHook 29 mock 30 graphviz 31 pycodestyle 32 ]; 33 34 preCheck = '' 35 export FONTCONFIG_FILE=${fontconfig.out}/etc/fonts/fonts.conf 36 ''; 37 38 meta = with lib; { 39 homepage = "https://github.com/pytransitions/transitions"; 40 description = "A lightweight, object-oriented finite state machine implementation in Python"; 41 license = licenses.mit; 42 maintainers = with maintainers; [ dotlambda ]; 43 }; 44}