Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 35 additions & 11 deletions pkgs/development/python-modules/automat/default.nix
Original file line number Diff line number Diff line change
@@ -1,26 +1,50 @@
{ lib, buildPythonPackage, fetchPypi,
m2r, setuptools-scm, six, attrs }:
{ lib
, buildPythonPackage
, fetchPypi
, attrs
, m2r
, pytest-benchmark
, pytestCheckHook
, setuptools-scm
, six
}:

buildPythonPackage rec {
let automat = buildPythonPackage rec {
version = "20.2.0";
pname = "Automat";
pname = "automat";

src = fetchPypi {
inherit pname version;
pname = "Automat";
inherit version;
sha256 = "7979803c74610e11ef0c0d68a2942b152df52da55336e0c9d58daf1831cbdf33";
};

buildInputs = [ m2r setuptools-scm ];
propagatedBuildInputs = [ six attrs ];
nativeBuildInputs = [
m2r
setuptools-scm
];

# Some tests require twisetd, but twisted requires Automat to build.
# this creates a circular dependency.
propagatedBuildInputs = [
six
attrs
];

checkInputs = [
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";
license = licenses.mit;
maintainers = [ ];
maintainers = with maintainers; [ SuperSandro2000 ];
};
}
}; in automat