2021-10-11 21:14:52 +02:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, django
|
|
|
|
, python
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "django-js-asset";
|
2021-10-12 01:11:08 +02:00
|
|
|
version = "unstable-2021-06-07";
|
2021-10-11 21:14:52 +02:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "matthiask";
|
|
|
|
repo = pname;
|
2021-10-12 01:11:08 +02:00
|
|
|
rev = "a186aa0b5721ca95da6cc032a2fb780a152f581b";
|
|
|
|
sha256 = "141zxng0wwxalsi905cs8pdppy3ad717y3g4fkdxw4n3pd0fjp8r";
|
2021-10-11 21:14:52 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|