Files
nixpkgs/pkgs/development/python-modules/django-js-reverse/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

54 lines
1.0 KiB
Nix

{
lib,
buildPythonPackage,
django,
fetchFromGitHub,
nodejs,
packaging,
python,
setuptools,
six,
}:
buildPythonPackage rec {
pname = "django-js-reverse";
version = "0.10.2";
pyproject = true;
src = fetchFromGitHub {
owner = "vintasoftware";
repo = "django-js-reverse";
tag = "v${version}";
hash = "sha256-0S1g8tLWaJVV2QGPeiBOevhz9f0ueINxA9HOcnXuyYg=";
};
build-system = [ setuptools ];
dependencies = [
django
packaging
];
nativeCheckInputs = [
nodejs
six
];
# Js2py is needed for tests but it's unmaintained and insecure
doCheck = false;
checkPhase = ''
${python.interpreter} django_js_reverse/tests/unit_tests.py
'';
pythonImportsCheck = [ "django_js_reverse" ];
meta = {
description = "Javascript URL handling for Django";
homepage = "https://django-js-reverse.readthedocs.io/";
changelog = "https://github.com/vintasoftware/django-js-reverse/releases/tag/${src.tag}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ ambroisie ];
};
}