1{ lib 2, buildPythonPackage 3, fetchPypi 4, attrs 5, pytest-benchmark 6, pytestCheckHook 7, setuptools-scm 8, six 9}: 10 11let automat = buildPythonPackage rec { 12 version = "22.10.0"; 13 pname = "automat"; 14 15 src = fetchPypi { 16 pname = "Automat"; 17 inherit version; 18 hash = "sha256-5WvrhO2tGdzBHTDo2biV913ute9elrhKRnBms7hLsE4="; 19 }; 20 21 nativeBuildInputs = [ 22 setuptools-scm 23 ]; 24 25 propagatedBuildInputs = [ 26 six 27 attrs 28 ]; 29 30 nativeCheckInputs = [ 31 pytest-benchmark 32 pytestCheckHook 33 ]; 34 35 # escape infinite recursion with twisted 36 doCheck = false; 37 38 passthru.tests = { 39 check = automat.overridePythonAttrs (_: { doCheck = true; }); 40 }; 41 42 meta = with lib; { 43 homepage = "https://github.com/glyph/Automat"; 44 description = "Self-service finite-state machines for the programmer on the go"; 45 license = licenses.mit; 46 maintainers = with maintainers; [ ]; 47 }; 48}; in automat