depot/third_party/nixpkgs/pkgs/development/python-modules/django-js-asset/default.nix
Default email d5f4a57cbf Project import generated by Copybara.
GitOrigin-RevId: ce5e4a6ef2e59d89a971bc434ca8ca222b9c7f5e
2023-08-10 09:59:29 +02:00

45 lines
868 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, hatchling
, django
, python
}:
buildPythonPackage rec {
pname = "django-js-asset";
version = "2.1";
format = "pyproject";
src = fetchFromGitHub {
owner = "matthiask";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-rxJ9TgVBiJByiFSLTg/dtAR31Fs14D4sh2axyBcKGTU=";
};
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 ];
};
}