depot/third_party/nixpkgs/pkgs/development/python-modules/libsass/default.nix

47 lines
880 B
Nix
Raw Normal View History

{ 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";
mainProgram = "pysassc";
homepage = "https://sass.github.io/libsass-python/";
license = licenses.mit;
maintainers = with maintainers; [ ];
};
}