2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
|
|
|
|
# dependencies
|
|
|
|
django-compressor,
|
|
|
|
libsass,
|
|
|
|
|
|
|
|
# tests
|
|
|
|
django,
|
|
|
|
python,
|
2023-05-24 13:37:59 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "django-libsass";
|
|
|
|
version = "0.9";
|
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "torchbox";
|
|
|
|
repo = "django-libsass";
|
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
hash = "sha256-54AlRVmit0rtG1jx7O+XyA1vXLHCfoNPjHkHCQaaybA=";
|
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
django-compressor
|
|
|
|
libsass
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [ django ];
|
2023-05-24 13:37:59 +00:00
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
runHook preCheck
|
|
|
|
${python.interpreter} ./runtests.py
|
|
|
|
runHook postCheck
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Django-compressor filter to compile SASS files using libsass";
|
2023-05-24 13:37:59 +00:00
|
|
|
homepage = "https://github.com/torchbox/django-libsass";
|
|
|
|
changelog = "https://github.com/torchbox/django-libsass/blob/${src.rev}/CHANGELOG.txt";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ hexa ];
|
|
|
|
};
|
|
|
|
}
|