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";
|
2021-07-14 22:03:04 +00:00
|
|
|
version = "0.21.0";
|
2020-11-30 08:33:03 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "sass";
|
|
|
|
repo = "libsass-python";
|
|
|
|
rev = version;
|
2021-07-14 22:03:04 +00:00
|
|
|
sha256 = "sha256-4doz3kkRlyfVfeUarYw2tcybeDVeE2jpgmHxFJsPiVc=";
|
2020-11-30 08:33:03 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ libsass ];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ six ];
|
|
|
|
|
|
|
|
preBuild = ''
|
|
|
|
export SYSTEM_SASS=true;
|
|
|
|
'';
|
|
|
|
|
|
|
|
checkInputs = [
|
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;
|
|
|
|
maintainers = with maintainers; [ SuperSandro2000 ];
|
|
|
|
};
|
|
|
|
}
|