e7ec2969af
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
45 lines
1,022 B
Nix
45 lines
1,022 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, setuptools
|
|
, flask
|
|
, webassets
|
|
, flask-script
|
|
, nose
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "flask-assets";
|
|
version = "2.1.0";
|
|
pyproject = true;
|
|
|
|
src = fetchPypi {
|
|
pname = "Flask-Assets";
|
|
inherit version;
|
|
hash = "sha256-+E1lMv/lnJ/zUoheh0D/TaJcC8+s2AXwqAaBXkQ1SBM=";
|
|
};
|
|
|
|
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'"
|
|
'';
|
|
|
|
nativeBuildInputs = [
|
|
setuptools
|
|
];
|
|
|
|
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 ];
|
|
};
|
|
}
|