Files
nixpkgs/pkgs/development/python-modules/django-webpack-loader/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

36 lines
833 B
Nix

{
lib,
buildPythonPackage,
django,
fetchFromGitHub,
setuptools-scm,
}:
buildPythonPackage rec {
pname = "django-webpack-loader";
version = "3.2.2";
pyproject = true;
src = fetchFromGitHub {
owner = "django-webpack";
repo = "django-webpack-loader";
tag = version;
hash = "sha256-ZT+c6oYpES+3idHO1Dty3r8DHGNtD44ljEbBVOlEmW0=";
};
build-system = [ setuptools-scm ];
dependencies = [ django ];
doCheck = false; # tests require fetching node_modules
pythonImportsCheck = [ "webpack_loader" ];
meta = {
description = "Use webpack to generate your static bundles";
homepage = "https://github.com/owais/django-webpack-loader";
changelog = "https://github.com/django-webpack/django-webpack-loader/blob/${version}/CHANGELOG.md";
license = with lib.licenses; [ mit ];
};
}