1{ stdenv, buildPythonPackage, fetchPypi 2, itsdangerous, hypothesis 3, pytest, requests, glibcLocales }: 4 5buildPythonPackage rec { 6 name = "${pname}-${version}"; 7 pname = "Werkzeug"; 8 version = "0.14.1"; 9 10 src = fetchPypi { 11 inherit pname version; 12 sha256 = "c3fd7a7d41976d9f44db327260e263132466836cef6f91512889ed60ad26557c"; 13 }; 14 15 propagatedBuildInputs = [ itsdangerous ]; 16 checkInputs = [ pytest requests glibcLocales hypothesis ]; 17 18 checkPhase = '' 19 LC_ALL="en_US.UTF-8" py.test ${stdenv.lib.optionalString stdenv.isDarwin "-k 'not test_get_machine_id'"} 20 ''; 21 22 meta = with stdenv.lib; { 23 homepage = http://werkzeug.pocoo.org/; 24 description = "A WSGI utility library for Python"; 25 license = licenses.bsd3; 26 }; 27}