Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 19.03 588 B view raw
1{ stdenv 2, buildPythonPackage 3, fetchPypi 4, pythonAtLeast 5, python 6}: 7 8if pythonAtLeast "3.4" then null else buildPythonPackage rec { 9 pname = "enum34"; 10 version = "1.1.6"; 11 12 src = fetchPypi { 13 inherit pname version; 14 sha256 = "8ad8c4783bf61ded74527bffb48ed9b54166685e4230386a9ed9b1279e2df5b1"; 15 }; 16 17 checkPhase = '' 18 ${python.interpreter} -m unittest discover 19 ''; 20 21 meta = with stdenv.lib; { 22 homepage = https://pypi.python.org/pypi/enum34; 23 description = "Python 3.4 Enum backported to 3.3, 3.2, 3.1, 2.7, 2.6, 2.5, and 2.4"; 24 license = licenses.bsd0; 25 }; 26 27}