1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/python-modules/flask-assets/default.nix
Matías Lang e84a1c5c01 pythonPackages.flask_assets: fix tests
The changes in
e6178fe489
introduced in Flask 1.1.2 broke the tests of flask-assets.
2020-08-09 16:15:12 -07:00

27 lines
911 B
Nix

{ lib, buildPythonPackage, fetchPypi, flask, webassets, flask_script, nose }:
buildPythonPackage rec {
pname = "Flask-Assets";
version = "2.0";
src = fetchPypi {
inherit pname version;
sha256 = "1dfdea35e40744d46aada72831f7613d67bf38e8b20ccaaa9e91fdc37aa3b8c2";
};
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 ];
};
}