mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 07:34:11 +00:00
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
897 B
Nix
45 lines
897 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, django
|
|
, django-appconf
|
|
, pytest-django
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "django-statici18n";
|
|
version = "2.3.1";
|
|
format = "setuptools";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "zyegfryed";
|
|
repo = pname;
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-2fFJJNdF0jspS7djDL8sToPTetzNR6pfNp5ohCNa30I=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
django
|
|
django-appconf
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"statici18n"
|
|
];
|
|
|
|
DJANGO_SETTINGS_MODULE = "tests.test_project.project.settings";
|
|
|
|
nativeCheckInputs = [
|
|
pytest-django
|
|
pytestCheckHook
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Helper for generating Javascript catalog to static files";
|
|
homepage = "https://github.com/zyegfryed/django-statici18n";
|
|
license = licenses.bsd3;
|
|
maintainers = with maintainers; [ greizgh schmittlauch ];
|
|
};
|
|
}
|