mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 03:23:29 +03:00

This reverts commit65a333600d
. This wasn't tested for correctness with something like fodwatch [0], and should not have been (self-)merged so quickly, especially without further review. It also resulted in the breakage of at least one package [1] (and that's the one we know of and was caught). A few packages that were updated in between this commit and this revert were not reverted back to using `rev`, but other than that, this is a 1:1 revert. [0]: https://codeberg.org/raphaelr/fodwatch [1]: https://github.com/NixOS/nixpkgs/pull/396904 /758551e458
47 lines
1,017 B
Nix
47 lines
1,017 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
pythonAtLeast,
|
|
fetchFromGitHub,
|
|
python,
|
|
django,
|
|
packaging,
|
|
nodejs,
|
|
six,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "django-js-reverse";
|
|
version = "0.10.1-b1";
|
|
format = "setuptools";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "BITSOLVER";
|
|
repo = "django-js-reverse";
|
|
rev = version;
|
|
hash = "sha256-i78UsxVwxyDAc8LrOVEXLG0tdidoQhvUx7GvPDaH0KY=";
|
|
};
|
|
|
|
propagatedBuildInputs = [ django ] ++ lib.optionals (pythonAtLeast "3.7") [ packaging ];
|
|
|
|
# Js2py is needed for tests but it's unmaintained and insecure
|
|
doCheck = false;
|
|
|
|
nativeCheckInputs = [
|
|
nodejs
|
|
six
|
|
];
|
|
|
|
checkPhase = ''
|
|
${python.interpreter} django_js_reverse/tests/unit_tests.py
|
|
'';
|
|
|
|
pythonImportsCheck = [ "django_js_reverse" ];
|
|
|
|
meta = with lib; {
|
|
description = "Javascript url handling for Django that doesn't hurt";
|
|
homepage = "https://django-js-reverse.readthedocs.io/en/latest/";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ ambroisie ];
|
|
};
|
|
}
|