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