linux_xanmod: 5.11.14 -> 5.11.15
[NixPkgs.git] / pkgs / development / python-modules / flask-assets / default.nix
blob390657e9c8237cd61a82bd7658f02850c1b1caac
1 { lib, buildPythonPackage, fetchPypi, flask, webassets, flask_script, nose }:
3 buildPythonPackage rec {
4   pname = "Flask-Assets";
5   version = "2.0";
7   src = fetchPypi {
8     inherit pname version;
9     sha256 = "1dfdea35e40744d46aada72831f7613d67bf38e8b20ccaaa9e91fdc37aa3b8c2";
10   };
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   '';
18   propagatedBuildInputs = [ flask webassets flask_script nose ];
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   };