aboutsummaryrefslogtreecommitdiff
path: root/infra/libkookie/nixpkgs/pkgs/development/python-modules/libsass/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'infra/libkookie/nixpkgs/pkgs/development/python-modules/libsass/default.nix')
-rw-r--r--infra/libkookie/nixpkgs/pkgs/development/python-modules/libsass/default.nix37
1 files changed, 37 insertions, 0 deletions
diff --git a/infra/libkookie/nixpkgs/pkgs/development/python-modules/libsass/default.nix b/infra/libkookie/nixpkgs/pkgs/development/python-modules/libsass/default.nix
new file mode 100644
index 000000000000..9feb5b1d2425
--- /dev/null
+++ b/infra/libkookie/nixpkgs/pkgs/development/python-modules/libsass/default.nix
@@ -0,0 +1,37 @@
+{ lib, buildPythonPackage, fetchFromGitHub, libsass, six, pytest, werkzeug }:
+
+buildPythonPackage rec {
+ pname = "libsass";
+ version = "0.20.1";
+
+ src = fetchFromGitHub {
+ owner = "sass";
+ repo = "libsass-python";
+ rev = version;
+ sha256 = "1r0kgl7i6nnhgjl44sjw57k08gh2qr7l8slqih550dyxbf1akbxh";
+ };
+
+ buildInputs = [ libsass ];
+
+ propagatedBuildInputs = [ six ];
+
+ preBuild = ''
+ export SYSTEM_SASS=true;
+ '';
+
+ checkInputs = [
+ pytest
+ werkzeug
+ ];
+
+ checkPhase = ''
+ pytest sasstests.py
+ '';
+
+ meta = with lib; {
+ description = "A straightforward binding of libsass for Python. Compile Sass/SCSS in Python with no Ruby stack at all!";
+ homepage = "https://sass.github.io/libsass-python/";
+ license = licenses.mit;
+ maintainers = with maintainers; [ SuperSandro2000 ];
+ };
+}