Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 37 lines 827 B view raw
1{ lib, buildPythonPackage, fetchFromGitHub, libsass, six, pytest, werkzeug }: 2 3buildPythonPackage rec { 4 pname = "libsass"; 5 version = "0.20.1"; 6 7 src = fetchFromGitHub { 8 owner = "sass"; 9 repo = "libsass-python"; 10 rev = version; 11 sha256 = "1r0kgl7i6nnhgjl44sjw57k08gh2qr7l8slqih550dyxbf1akbxh"; 12 }; 13 14 buildInputs = [ libsass ]; 15 16 propagatedBuildInputs = [ six ]; 17 18 preBuild = '' 19 export SYSTEM_SASS=true; 20 ''; 21 22 checkInputs = [ 23 pytest 24 werkzeug 25 ]; 26 27 checkPhase = '' 28 pytest sasstests.py 29 ''; 30 31 meta = with lib; { 32 description = "A straightforward binding of libsass for Python. Compile Sass/SCSS in Python with no Ruby stack at all!"; 33 homepage = "https://sass.github.io/libsass-python/"; 34 license = licenses.mit; 35 maintainers = with maintainers; [ SuperSandro2000 ]; 36 }; 37}