Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / django-libsass / default.nix
blob181abfafd148f91854282b330c175f9ef18dcf1c
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
5 # dependencies
6 , django-compressor
7 , libsass
9 # tests
10 , django
11 , python
14 buildPythonPackage rec {
15   pname = "django-libsass";
16   version = "0.9";
17   format = "setuptools";
19   src = fetchFromGitHub {
20     owner = "torchbox";
21     repo = "django-libsass";
22     rev = "refs/tags/v${version}";
23     hash = "sha256-54AlRVmit0rtG1jx7O+XyA1vXLHCfoNPjHkHCQaaybA=";
24   };
26   propagatedBuildInputs = [
27     django-compressor
28     libsass
29   ];
31   nativeCheckInputs = [
32     django
33   ];
35   checkPhase = ''
36     runHook preCheck
37     ${python.interpreter} ./runtests.py
38     runHook postCheck
39   '';
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   };