nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 django,
5 fetchFromGitHub,
6 setuptools-scm,
7}:
8
9buildPythonPackage rec {
10 pname = "django-webpack-loader";
11 version = "3.2.3";
12 pyproject = true;
13
14 src = fetchFromGitHub {
15 owner = "django-webpack";
16 repo = "django-webpack-loader";
17 tag = version;
18 hash = "sha256-W5N6l3GE1OLKLtaBdW0apJ7omlgvsxpPZT4HbIF0Roo=";
19 };
20
21 build-system = [ setuptools-scm ];
22
23 dependencies = [ django ];
24
25 doCheck = false; # tests require fetching node_modules
26
27 pythonImportsCheck = [ "webpack_loader" ];
28
29 meta = {
30 description = "Use webpack to generate your static bundles";
31 homepage = "https://github.com/owais/django-webpack-loader";
32 changelog = "https://github.com/django-webpack/django-webpack-loader/blob/${version}/CHANGELOG.md";
33 license = with lib.licenses; [ mit ];
34 };
35}