5e7c2d6cef
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
27 lines
918 B
Nix
27 lines
918 B
Nix
{ lib, buildPythonPackage, fetchPypi, flask, webassets, flask-script, nose }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "flask-assets";
|
|
version = "2.0";
|
|
|
|
src = fetchPypi {
|
|
pname = "Flask-Assets";
|
|
inherit version;
|
|
hash = "sha256-Hf3qNeQHRNRqracoMfdhPWe/OOiyDMqqnpH9w3qjuMI=";
|
|
};
|
|
|
|
patchPhase = ''
|
|
substituteInPlace tests/test_integration.py --replace 'static_path=' 'static_url_path='
|
|
substituteInPlace tests/test_integration.py --replace "static_folder = '/'" "static_folder = '/x'"
|
|
substituteInPlace tests/test_integration.py --replace "'/foo'" "'/x/foo'"
|
|
'';
|
|
|
|
propagatedBuildInputs = [ flask webassets flask-script nose ];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/miracle2k/flask-assets";
|
|
description = "Asset management for Flask, to compress and merge CSS and Javascript files";
|
|
license = licenses.bsd2;
|
|
maintainers = with maintainers; [ abbradar ];
|
|
};
|
|
}
|