depot/third_party/nixpkgs/pkgs/development/python-modules/libsass/default.nix
Default email e7ec2969af Project import generated by Copybara.
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
2024-01-13 09:15:51 +01:00

45 lines
851 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 = with lib; {
description = "Python binding for libsass to compile Sass/SCSS";
homepage = "https://sass.github.io/libsass-python/";
license = licenses.mit;
maintainers = with maintainers; [ ];
};
}