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