depot/third_party/nixpkgs/pkgs/development/python-modules/libsass/default.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

47 lines
902 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
libsass,
six,
pytestCheckHook,
werkzeug,
}:
buildPythonPackage rec {
pname = "libsass";
version = "0.23.0";
format = "setuptools";
src = fetchFromGitHub {
owner = "sass";
repo = "libsass-python";
rev = "refs/tags/${version}";
hash = "sha256-CiSr9/3EDwpDEzu6VcMBAlm3CtKTmGYbZMnMEjyZVxI=";
};
buildInputs = [ libsass ];
propagatedBuildInputs = [ six ];
preBuild = ''
export SYSTEM_SASS=true;
'';
nativeCheckInputs = [
pytestCheckHook
werkzeug
];
pytestFlagsArray = [ "sasstests.py" ];
pythonImportsCheck = [ "sass" ];
meta = {
description = "Python binding for libsass to compile Sass/SCSS";
mainProgram = "pysassc";
homepage = "https://sass.github.io/libsass-python/";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ sigmanificient ];
};
}