blob: f579a31dc3e7c64762e9cff83bd67293b50ca82e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
{ 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 ];
};
}
|