1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, libsass
5, six
6, pytestCheckHook
7, werkzeug
8}:
9
10buildPythonPackage rec {
11 pname = "libsass";
12 version = "0.22.0";
13
14 src = fetchFromGitHub {
15 owner = "sass";
16 repo = "libsass-python";
17 rev = "refs/tags/${version}";
18 sha256 = "sha256-5O4Er3jNUFy83m/K0HzYR+fHcSDqF/3M+fXaFZY8zEg=";
19 };
20
21 buildInputs = [ libsass ];
22
23 propagatedBuildInputs = [ six ];
24
25 preBuild = ''
26 export SYSTEM_SASS=true;
27 '';
28
29 checkInputs = [
30 pytestCheckHook
31 werkzeug
32 ];
33
34 pytestFlagsArray = [ "sasstests.py" ];
35
36 pythonImportsCheck = [ "sass" ];
37
38 meta = with lib; {
39 description = "Python binding for libsass to compile Sass/SCSS";
40 homepage = "https://sass.github.io/libsass-python/";
41 license = licenses.mit;
42 maintainers = with maintainers; [ SuperSandro2000 ];
43 };
44}