Skip to content

Commit

Permalink
python312Packages.flask-assets: modernize and remove failing substitu…
Browse files Browse the repository at this point in the history
…tions
  • Loading branch information
pyrox0 committed Oct 14, 2024
1 parent 8da5882 commit c3c9358
Showing 1 changed file with 7 additions and 12 deletions.
19 changes: 7 additions & 12 deletions pkgs/development/python-modules/flask-assets/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -22,22 +22,17 @@ buildPythonPackage rec {
};

patches = [
# On master branch but not in a release.
(fetchpatch2 {
name = "refactor-with-pytest.patch";
url = "https://github.com/miracle2k/flask-assets/commit/56e06dbb160c165e0289ac97496354786fe3f3fd.patch?full_index=1";
hash = "sha256-Feo7gHHmHtWRB+3XvlECdU4i5rpyjyKEYEUCuy24rf4=";
})
];

postPatch = ''
substituteInPlace tests/test_integration.py \
--replace-fail 'static_path=' 'static_url_path=' \
--replace-fail "static_folder = '/'" "static_folder = '/x'" \
--replace-fail "'/foo'" "'/x/foo'"
'';
build-system = [ setuptools ];

nativeBuildInputs = [ setuptools ];

propagatedBuildInputs = [
dependencies = [
flask
webassets
];
Expand All @@ -46,10 +41,10 @@ buildPythonPackage rec {

pythonImportsCheck = [ "flask_assets" ];

meta = with lib; {
meta = {
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 ];
license = lib.licenses.bsd2;
maintainers = with lib.maintainers; [ abbradar ];
};
}

0 comments on commit c3c9358

Please sign in to comment.