mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 21:53:32 +00:00
0215034f25
when they already rely on SRI hashes.
45 lines
842 B
Nix
45 lines
842 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, libsass
|
|
, six
|
|
, pytestCheckHook
|
|
, werkzeug
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "libsass";
|
|
version = "0.22.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "sass";
|
|
repo = "libsass-python";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-5O4Er3jNUFy83m/K0HzYR+fHcSDqF/3M+fXaFZY8zEg=";
|
|
};
|
|
|
|
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; [ SuperSandro2000 ];
|
|
};
|
|
}
|