1{ stdenv, buildPythonPackage, fetchurl, 2 m2r, setuptools_scm, six, attrs }: 3buildPythonPackage rec { 4 version = "0.6.0"; 5 pname = "Automat"; 6 name = "${pname}-${version}"; 7 8 src = fetchurl { 9 url = "mirror://pypi/A/Automat/${name}.tar.gz"; 10 sha256 = "3c1fd04ecf08ac87b4dd3feae409542e9bf7827257097b2b6ed5692f69d6f6a8"; 11 }; 12 13 buildInputs = [ m2r setuptools_scm ]; 14 propagatedBuildInputs = [ six attrs ]; 15 16 # Some tests require twisetd, but twisted requires Automat to build. 17 # this creates a circular dependency. 18 doCheck = false; 19 20 meta = with stdenv.lib; { 21 homepage = https://github.com/glyph/Automat; 22 description = "Self-service finite-state machines for the programmer on the go"; 23 license = licenses.mit; 24 maintainers = [ ]; 25 }; 26}