aboutsummaryrefslogtreecommitdiff
path: root/infra/libkookie/nixpkgs/pkgs/development/python-modules/libsass/default.nix
blob: 9feb5b1d24253fd7e7f685a56bd36276a2f6cfa9 (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
{ lib, buildPythonPackage, fetchFromGitHub, libsass, six, pytest, werkzeug }:

buildPythonPackage rec {
  pname = "libsass";
  version = "0.20.1";

  src = fetchFromGitHub {
    owner = "sass";
    repo = "libsass-python";
    rev = version;
    sha256 = "1r0kgl7i6nnhgjl44sjw57k08gh2qr7l8slqih550dyxbf1akbxh";
  };

  buildInputs = [ libsass ];

  propagatedBuildInputs = [ six ];

  preBuild = ''
    export SYSTEM_SASS=true;
  '';

  checkInputs = [
    pytest
    werkzeug
  ];

  checkPhase = ''
    pytest sasstests.py
  '';

  meta = with lib; {
    description = "A straightforward binding of libsass for Python. Compile Sass/SCSS in Python with no Ruby stack at all!";
    homepage = "https://sass.github.io/libsass-python/";
    license = licenses.mit;
    maintainers = with maintainers; [ SuperSandro2000 ];
  };
}