Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / django-js-asset / default.nix
blob54c4c4b90eb45c7eeeb40fc6f7ef183ff41ff3ad
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , hatchling
5 , django
6 , python
7 }:
9 buildPythonPackage rec {
10   pname = "django-js-asset";
11   version = "2.2";
12   format = "pyproject";
14   src = fetchFromGitHub {
15     owner = "matthiask";
16     repo = pname;
17     rev = "refs/tags/${version}";
18     hash = "sha256-qAkE5ubzfTNO1LuMQXMW2Sot1cn/bhuXlWa/J/wD5SI=";
19   };
21   nativeBuildInputs = [
22     hatchling
23   ];
25   propagatedBuildInputs = [
26     django
27   ];
29   pythonImportsCheck = [
30     "js_asset"
31   ];
33   checkPhase = ''
34     runHook preCheck
35     ${python.interpreter} tests/manage.py test testapp
36     runHook postCheck
37   '';
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   };