anki-bin: 24.06.3 -> 24.11 (#360722)
[NixPkgs.git] / pkgs / development / python-modules / django-libsass / default.nix
blobee6631cd3a000ddad3b64b6e7072f6cc12fe139f
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
6   # dependencies
7   django-compressor,
8   libsass,
10   # tests
11   django,
12   python,
15 buildPythonPackage rec {
16   pname = "django-libsass";
17   version = "0.9";
18   format = "setuptools";
20   src = fetchFromGitHub {
21     owner = "torchbox";
22     repo = "django-libsass";
23     rev = "refs/tags/v${version}";
24     hash = "sha256-54AlRVmit0rtG1jx7O+XyA1vXLHCfoNPjHkHCQaaybA=";
25   };
27   propagatedBuildInputs = [
28     django-compressor
29     libsass
30   ];
32   nativeCheckInputs = [ django ];
34   checkPhase = ''
35     runHook preCheck
36     ${python.interpreter} ./runtests.py
37     runHook postCheck
38   '';
40   meta = with lib; {
41     description = "Django-compressor filter to compile SASS files using libsass";
42     homepage = "https://github.com/torchbox/django-libsass";
43     changelog = "https://github.com/torchbox/django-libsass/blob/${src.rev}/CHANGELOG.txt";
44     license = licenses.bsd3;
45     maintainers = with maintainers; [ hexa ];
46   };