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 inherit pname version;
9 sha256 = "1dfdea35e40744d46aada72831f7613d67bf38e8b20ccaaa9e91fdc37aa3b8c2";
10 };
11
12 patchPhase = ''
13 substituteInPlace tests/test_integration.py --replace 'static_path=' 'static_url_path='
14 substituteInPlace tests/test_integration.py --replace "static_folder = '/'" "static_folder = '/x'"
15 substituteInPlace tests/test_integration.py --replace "'/foo'" "'/x/foo'"
16 '';
17
18 propagatedBuildInputs = [ flask webassets flask_script nose ];
19
20 meta = with lib; {
21 homepage = "https://github.com/miracle2k/flask-assets";
22 description = "Asset management for Flask, to compress and merge CSS and Javascript files";
23 license = licenses.bsd2;
24 maintainers = with maintainers; [ abbradar ];
25 };
26}