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";
|
2022-11-21 17:40:18 +00:00
|
|
|
version = "0.22.0";
|
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}";
|
2023-03-15 16:39:30 +00:00
|
|
|
hash = "sha256-5O4Er3jNUFy83m/K0HzYR+fHcSDqF/3M+fXaFZY8zEg=";
|
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
|
|
|
};
|
|
|
|
}
|