mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-29 20:45: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
37 lines
751 B
Nix
37 lines
751 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
flit-core,
|
|
django,
|
|
pytestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "django-context-decorator";
|
|
version = "1.6.1";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "rixx";
|
|
repo = "django-context-decorator";
|
|
rev = "v${version}";
|
|
hash = "sha256-lNmZDsguOu2+gtMVjbwr709sbLCQOQ1sAePN7UJQbcw=";
|
|
};
|
|
|
|
build-system = [ flit-core ];
|
|
|
|
pythonImportsCheck = [ "django_context_decorator" ];
|
|
|
|
nativeCheckInputs = [
|
|
django
|
|
pytestCheckHook
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Django @context decorator";
|
|
homepage = "https://github.com/rixx/django-context-decorator";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ hexa ];
|
|
};
|
|
}
|