2018-06-23 13:27:58 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, flask, webassets, flask_script, nose }:
|
2018-02-25 17:26:04 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2018-06-23 13:27:58 +00:00
|
|
|
pname = "Flask-Assets";
|
2020-06-06 06:47:07 +00:00
|
|
|
version = "2.0";
|
2018-02-25 17:26:04 +00:00
|
|
|
|
2018-06-23 13:27:58 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-06-06 06:47:07 +00:00
|
|
|
sha256 = "1dfdea35e40744d46aada72831f7613d67bf38e8b20ccaaa9e91fdc37aa3b8c2";
|
2018-02-25 17:26:04 +00:00
|
|
|
};
|
|
|
|
|
2018-09-23 08:02:51 +00:00
|
|
|
patchPhase = ''
|
|
|
|
substituteInPlace tests/test_integration.py --replace 'static_path=' 'static_url_path='
|
2020-08-09 20:35:03 +00:00
|
|
|
substituteInPlace tests/test_integration.py --replace "static_folder = '/'" "static_folder = '/x'"
|
|
|
|
substituteInPlace tests/test_integration.py --replace "'/foo'" "'/x/foo'"
|
2018-09-23 08:02:51 +00:00
|
|
|
'';
|
|
|
|
|
2018-02-25 17:26:04 +00:00
|
|
|
propagatedBuildInputs = [ flask webassets flask_script nose ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/miracle2k/flask-assets";
|
2018-02-25 17:26:04 +00:00
|
|
|
description = "Asset management for Flask, to compress and merge CSS and Javascript files";
|
|
|
|
license = licenses.bsd2;
|
|
|
|
maintainers = with maintainers; [ abbradar ];
|
|
|
|
};
|
|
|
|
}
|