From c2211b2d7a0c31e9fc6ddffd66fe9a305de51a6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Sat, 3 Oct 2020 22:20:59 +0200 Subject: [PATCH] pythonPackages.libsass: init at 0.20.1 --- .../python-modules/libsass/default.nix | 37 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 39 insertions(+) create mode 100644 pkgs/development/python-modules/libsass/default.nix diff --git a/pkgs/development/python-modules/libsass/default.nix b/pkgs/development/python-modules/libsass/default.nix new file mode 100644 index 000000000000..9feb5b1d2425 --- /dev/null +++ b/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 ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 28092b35d84c..03b36ab11c7a 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -3386,6 +3386,8 @@ in { librosa = callPackage ../development/python-modules/librosa { }; + libsass = (callPackage ../development/python-modules/libsass { inherit (pkgs) libsass; }); + libsavitar = callPackage ../development/python-modules/libsavitar { }; libselinux = pipe pkgs.libselinux [