depot/third_party/nixpkgs/pkgs/development/python-modules/django-libsass/default.nix
Default email 94427deb9d Project import generated by Copybara.
GitOrigin-RevId: f91ee3065de91a3531329a674a45ddcb3467a650
2023-05-24 16:37:59 +03:00

48 lines
963 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
# dependencies
, django-compressor
, libsass
# tests
, django
, python
}:
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
];
nativeCheckInputs = [
django
];
checkPhase = ''
runHook preCheck
${python.interpreter} ./runtests.py
runHook postCheck
'';
meta = with lib; {
description = "A django-compressor filter to compile SASS files using libsass";
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 ];
};
}