nixpkgs/pkgs/development/python-modules/automat/default.nix
Jörg Thalheim 5356420466 treewide: remove unused with statements from maintainer lists
$ find -type f -name '*.nix' -print0 | xargs -P "$(nproc)" -0 sed -i \
  -e 's!with lib.maintainers; \[ *\];![ ];!' \
  -e 's!with maintainers; \[ *\];![ ];!'
2024-07-29 10:06:20 +08:00

55 lines
1.0 KiB
Nix

{
lib,
buildPythonPackage,
fetchPypi,
attrs,
pytest-benchmark,
pytestCheckHook,
setuptools-scm,
six,
}:
let
automat = buildPythonPackage rec {
version = "22.10.0";
format = "setuptools";
pname = "automat";
src = fetchPypi {
pname = "Automat";
inherit version;
hash = "sha256-5WvrhO2tGdzBHTDo2biV913ute9elrhKRnBms7hLsE4=";
};
nativeBuildInputs = [ setuptools-scm ];
propagatedBuildInputs = [
six
attrs
];
nativeCheckInputs = [
pytest-benchmark
pytestCheckHook
];
# escape infinite recursion with twisted
doCheck = false;
passthru.tests = {
check = automat.overridePythonAttrs (_: {
doCheck = true;
});
};
meta = with lib; {
homepage = "https://github.com/glyph/Automat";
description = "Self-service finite-state machines for the programmer on the go";
mainProgram = "automat-visualize";
license = licenses.mit;
maintainers = [ ];
};
};
in
automat