1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 fetchpatch,
6 setuptools,
7 django,
8 django-jquery-js,
9}:
10
11buildPythonPackage rec {
12 pname = "django-formset-js-improved";
13 version = "0.5.0.3";
14 pyproject = true;
15
16 src = fetchFromGitHub {
17 owner = "pretix";
18 repo = "django-formset-js";
19 tag = version;
20 hash = "sha256-bOM24ldXk9WeV0jl6LIJB3BJ5hVWLA1PJTBBnJBoprU=";
21 };
22
23 patches = [
24 (fetchpatch {
25 url = "https://github.com/pretix/django-formset-js/commit/7d8a33190d58ff9d75270264342eba82672d054e.patch";
26 hash = "sha256-eBRP0eqMnH7UM9cToR+diejO6dMDDVt2bbUHLDcaWjk=";
27 })
28 ];
29
30 build-system = [ setuptools ];
31
32 buildInputs = [ django ];
33
34 dependencies = [ django-jquery-js ];
35
36 pythonImportsCheck = [ "djangoformsetjs" ];
37
38 doCheck = false; # no tests
39
40 meta = with lib; {
41 description = "Wrapper for a JavaScript formset helper";
42 homepage = "https://github.com/pretix/django-formset-js";
43 license = licenses.bsd2;
44 maintainers = with maintainers; [ hexa ];
45 };
46}