1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4 5# dependencies 6, django-compressor 7, libsass 8 9# tests 10, django 11, python 12}: 13 14buildPythonPackage rec { 15 pname = "django-libsass"; 16 version = "0.9"; 17 format = "setuptools"; 18 19 src = fetchFromGitHub { 20 owner = "torchbox"; 21 repo = "django-libsass"; 22 rev = "refs/tags/v${version}"; 23 hash = "sha256-54AlRVmit0rtG1jx7O+XyA1vXLHCfoNPjHkHCQaaybA="; 24 }; 25 26 propagatedBuildInputs = [ 27 django-compressor 28 libsass 29 ]; 30 31 nativeCheckInputs = [ 32 django 33 ]; 34 35 checkPhase = '' 36 runHook preCheck 37 ${python.interpreter} ./runtests.py 38 runHook postCheck 39 ''; 40 41 meta = with lib; { 42 description = "A django-compressor filter to compile SASS files using libsass"; 43 homepage = "https://github.com/torchbox/django-libsass"; 44 changelog = "https://github.com/torchbox/django-libsass/blob/${src.rev}/CHANGELOG.txt"; 45 license = licenses.bsd3; 46 maintainers = with maintainers; [ hexa ]; 47 }; 48}