Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, hatchling 5, django 6, python 7}: 8 9buildPythonPackage rec { 10 pname = "django-js-asset"; 11 version = "2.1"; 12 format = "pyproject"; 13 14 src = fetchFromGitHub { 15 owner = "matthiask"; 16 repo = pname; 17 rev = "refs/tags/${version}"; 18 hash = "sha256-rxJ9TgVBiJByiFSLTg/dtAR31Fs14D4sh2axyBcKGTU="; 19 }; 20 21 nativeBuildInputs = [ 22 hatchling 23 ]; 24 25 propagatedBuildInputs = [ 26 django 27 ]; 28 29 pythonImportsCheck = [ 30 "js_asset" 31 ]; 32 33 checkPhase = '' 34 runHook preCheck 35 ${python.interpreter} tests/manage.py test testapp 36 runHook postCheck 37 ''; 38 39 meta = with lib; { 40 description = "Script tag with additional attributes for django.forms.Media"; 41 homepage = "https://github.com/matthiask/django-js-asset"; 42 maintainers = with maintainers; [ hexa ]; 43 license = with licenses; [ bsd3 ]; 44 }; 45}