fa5436e0a7
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
40 lines
858 B
Nix
40 lines
858 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
hatchling,
|
|
django,
|
|
python,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "django-js-asset";
|
|
version = "2.2";
|
|
format = "pyproject";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "matthiask";
|
|
repo = pname;
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-qAkE5ubzfTNO1LuMQXMW2Sot1cn/bhuXlWa/J/wD5SI=";
|
|
};
|
|
|
|
nativeBuildInputs = [ hatchling ];
|
|
|
|
propagatedBuildInputs = [ django ];
|
|
|
|
pythonImportsCheck = [ "js_asset" ];
|
|
|
|
checkPhase = ''
|
|
runHook preCheck
|
|
${python.interpreter} tests/manage.py test testapp
|
|
runHook postCheck
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Script tag with additional attributes for django.forms.Media";
|
|
homepage = "https://github.com/matthiask/django-js-asset";
|
|
maintainers = with maintainers; [ hexa ];
|
|
license = with licenses; [ bsd3 ];
|
|
};
|
|
}
|