summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/django-libsass/default.nix
blob: 725c21cf5ed6631a3236e1c8bc7bd1e822900d43 (plain)
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
46
47
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,

  # dependencies
  django-compressor,
  libsass,

  # tests
  django,
  python,
}:

buildPythonPackage rec {
  pname = "django-libsass";
  version = "0.9";
  format = "setuptools";

  src = fetchFromGitHub {
    owner = "torchbox";
    repo = "django-libsass";
    tag = "v${version}";
    hash = "sha256-54AlRVmit0rtG1jx7O+XyA1vXLHCfoNPjHkHCQaaybA=";
  };

  propagatedBuildInputs = [
    django-compressor
    libsass
  ];

  nativeCheckInputs = [ django ];

  checkPhase = ''
    runHook preCheck
    ${python.interpreter} ./runtests.py
    runHook postCheck
  '';

  meta = {
    description = "Django-compressor filter to compile SASS files using libsass";
    homepage = "https://github.com/torchbox/django-libsass";
    changelog = "https://github.com/torchbox/django-libsass/blob/${src.rev}/CHANGELOG.txt";
    license = lib.licenses.bsd3;
    maintainers = with lib.maintainers; [ hexa ];
  };
}