Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.03 28 lines 709 B view raw
1{ stdenv, buildPythonPackage, fetchPypi 2, itsdangerous, hypothesis 3, pytest, requests 4, pytest-timeout 5 }: 6 7buildPythonPackage rec { 8 pname = "Werkzeug"; 9 version = "0.16.1"; 10 11 src = fetchPypi { 12 inherit pname version; 13 sha256 = "b353856d37dec59d6511359f97f6a4b2468442e454bd1c98298ddce53cac1f04"; 14 }; 15 16 propagatedBuildInputs = [ itsdangerous ]; 17 checkInputs = [ pytest requests hypothesis pytest-timeout ]; 18 19 checkPhase = '' 20 pytest ${stdenv.lib.optionalString stdenv.isDarwin "-k 'not test_get_machine_id'"} 21 ''; 22 23 meta = with stdenv.lib; { 24 homepage = "https://palletsprojects.com/p/werkzeug/"; 25 description = "A WSGI utility library for Python"; 26 license = licenses.bsd3; 27 }; 28}