1{ lib 2, buildPythonPackage 3, fetchPypi 4, pythonAtLeast 5, unittestCheckHook 6}: 7 8if pythonAtLeast "3.4" then null else buildPythonPackage rec { 9 pname = "enum34"; 10 version = "1.1.10"; 11 12 src = fetchPypi { 13 inherit pname version; 14 sha256 = "cce6a7477ed816bd2542d03d53db9f0db935dd013b70f336a95c73979289f248"; 15 }; 16 17 checkInputs = [ unittestCheckHook ]; 18 19 meta = with lib; { 20 homepage = "https://pypi.python.org/pypi/enum34"; 21 description = "Python 3.4 Enum backported to 3.3, 3.2, 3.1, 2.7, 2.6, 2.5, and 2.4"; 22 license = licenses.bsd0; 23 }; 24 25}