1{ lib, buildPythonPackage, fetchPypi, flask, webassets, flask-script, nose }: 2 3buildPythonPackage rec { 4 pname = "flask-assets"; 5 version = "2.0"; 6 7 src = fetchPypi { 8 pname = "Flask-Assets"; 9 inherit version; 10 hash = "sha256-Hf3qNeQHRNRqracoMfdhPWe/OOiyDMqqnpH9w3qjuMI="; 11 }; 12 13 patchPhase = '' 14 substituteInPlace tests/test_integration.py --replace 'static_path=' 'static_url_path=' 15 substituteInPlace tests/test_integration.py --replace "static_folder = '/'" "static_folder = '/x'" 16 substituteInPlace tests/test_integration.py --replace "'/foo'" "'/x/foo'" 17 ''; 18 19 propagatedBuildInputs = [ flask webassets flask-script nose ]; 20 21 meta = with lib; { 22 homepage = "https://github.com/miracle2k/flask-assets"; 23 description = "Asset management for Flask, to compress and merge CSS and Javascript files"; 24 license = licenses.bsd2; 25 maintainers = with maintainers; [ abbradar ]; 26 }; 27}