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