2022-06-16 17:23:12 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2022-08-12 12:06:08 +00:00
|
|
|
, fetchpatch
|
2022-06-16 17:23:12 +00:00
|
|
|
, attrs
|
|
|
|
, pytest-benchmark
|
|
|
|
, pytestCheckHook
|
|
|
|
, setuptools-scm
|
|
|
|
, six
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
let automat = buildPythonPackage rec {
|
2020-06-15 15:56:04 +00:00
|
|
|
version = "20.2.0";
|
2022-06-16 17:23:12 +00:00
|
|
|
pname = "automat";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
2022-06-16 17:23:12 +00:00
|
|
|
pname = "Automat";
|
|
|
|
inherit version;
|
2020-06-15 15:56:04 +00:00
|
|
|
sha256 = "7979803c74610e11ef0c0d68a2942b152df52da55336e0c9d58daf1831cbdf33";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-08-12 12:06:08 +00:00
|
|
|
patches = [
|
|
|
|
# don't depend on m2r
|
|
|
|
(fetchpatch {
|
|
|
|
name = "dont-depend-on-m2r.patch";
|
|
|
|
url = "https://github.com/glyph/automat/compare/v20.2.0..2562fa4ddeba5b5945d9482baa4c26a414f5e831.patch";
|
|
|
|
includes = [ "setup.py" ];
|
|
|
|
hash = "sha256-jlPLJMu1QbBpiVYHDiqPydrXjEoZgYZTVVGNxSA0NxY=";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools-scm
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
six
|
|
|
|
attrs
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytest-benchmark
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
# escape infinite recursion with twisted
|
2020-04-24 23:36:52 +00:00
|
|
|
doCheck = false;
|
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
passthru.tests = {
|
|
|
|
check = automat.overridePythonAttrs (_: { doCheck = true; });
|
|
|
|
};
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/glyph/Automat";
|
|
|
|
description = "Self-service finite-state machines for the programmer on the go";
|
|
|
|
license = licenses.mit;
|
2022-06-16 17:23:12 +00:00
|
|
|
maintainers = with maintainers; [ SuperSandro2000 ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
2022-06-16 17:23:12 +00:00
|
|
|
}; in automat
|