2021-07-14 22:03:04 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, libsass
|
|
|
|
, six
|
|
|
|
, pytestCheckHook
|
|
|
|
, werkzeug
|
|
|
|
}:
|
2020-11-30 08:33:03 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "libsass";
|
2024-01-13 08:15:51 +00:00
|
|
|
version = "0.23.0";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2020-11-30 08:33:03 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "sass";
|
|
|
|
repo = "libsass-python";
|
2022-11-21 17:40:18 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2024-01-13 08:15:51 +00:00
|
|
|
hash = "sha256-CiSr9/3EDwpDEzu6VcMBAlm3CtKTmGYbZMnMEjyZVxI=";
|
2020-11-30 08:33:03 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ libsass ];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ six ];
|
|
|
|
|
|
|
|
preBuild = ''
|
|
|
|
export SYSTEM_SASS=true;
|
|
|
|
'';
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-07-14 22:03:04 +00:00
|
|
|
pytestCheckHook
|
2020-11-30 08:33:03 +00:00
|
|
|
werkzeug
|
|
|
|
];
|
|
|
|
|
2021-07-14 22:03:04 +00:00
|
|
|
pytestFlagsArray = [ "sasstests.py" ];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "sass" ];
|
2020-11-30 08:33:03 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2021-07-14 22:03:04 +00:00
|
|
|
description = "Python binding for libsass to compile Sass/SCSS";
|
2020-11-30 08:33:03 +00:00
|
|
|
homepage = "https://sass.github.io/libsass-python/";
|
|
|
|
license = licenses.mit;
|
2023-08-04 22:07:22 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2020-11-30 08:33:03 +00:00
|
|
|
};
|
|
|
|
}
|