33afbf39f6
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
45 lines
930 B
Nix
45 lines
930 B
Nix
{ lib
|
|
, fetchFromGitHub
|
|
, buildPythonPackage
|
|
, pytest
|
|
, django
|
|
, python-fsutil
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "django-maintenance-mode";
|
|
version = "0.18.0";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "fabiocaccamo";
|
|
repo = pname;
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-Mcj8O20hCINGf5T3PCG9jq0onSrm4R+Ke5CLMqMDmuU=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
django
|
|
python-fsutil
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytest
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"maintenance_mode"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Shows a 503 error page when maintenance-mode is on";
|
|
homepage = "https://github.com/fabiocaccamo/django-maintenance-mode";
|
|
changelog = "https://github.com/fabiocaccamo/django-maintenance-mode/releases/tag/${version}";
|
|
maintainers = with maintainers; [ mrmebelman ];
|
|
license = licenses.bsd3;
|
|
};
|
|
}
|