567e8dfd8e
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>
47 lines
1023 B
Nix
47 lines
1023 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
fetchpatch,
|
|
setuptools,
|
|
django,
|
|
django-jquery-js,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "django-formset-js-improved";
|
|
version = "0.5.0.3";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "pretix";
|
|
repo = "django-formset-js";
|
|
tag = version;
|
|
hash = "sha256-bOM24ldXk9WeV0jl6LIJB3BJ5hVWLA1PJTBBnJBoprU=";
|
|
};
|
|
|
|
patches = [
|
|
(fetchpatch {
|
|
url = "https://github.com/pretix/django-formset-js/commit/7d8a33190d58ff9d75270264342eba82672d054e.patch";
|
|
hash = "sha256-eBRP0eqMnH7UM9cToR+diejO6dMDDVt2bbUHLDcaWjk=";
|
|
})
|
|
];
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
buildInputs = [ django ];
|
|
|
|
dependencies = [ django-jquery-js ];
|
|
|
|
pythonImportsCheck = [ "djangoformsetjs" ];
|
|
|
|
doCheck = false; # no tests
|
|
|
|
meta = {
|
|
description = "Wrapper for a JavaScript formset helper";
|
|
homepage = "https://github.com/pretix/django-formset-js";
|
|
license = lib.licenses.bsd2;
|
|
maintainers = with lib.maintainers; [ hexa ];
|
|
};
|
|
}
|