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