1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pytestCheckHook 5, six 6, enum34 7, pathlib 8, pythonOlder 9}: 10 11buildPythonPackage rec { 12 pname = "pyScss"; 13 version = "1.4.0"; 14 15 src = fetchFromGitHub { 16 repo = "pyScss"; 17 owner = "Kronuz"; 18 rev = "refs/tags/v${version}"; 19 hash = "sha256-z0y4z+/JE6rZWHAvps/taDZvutyVhxxs2gMujV5rNu4="; 20 }; 21 22 nativeCheckInputs = [ pytestCheckHook ]; 23 24 propagatedBuildInputs = [ six ] 25 ++ lib.optionals (pythonOlder "3.4") [ enum34 pathlib ]; 26 27 # Test suite is broken. 28 # See https://github.com/Kronuz/pyScss/issues/415 29 doCheck = false; 30 31 meta = with lib; { 32 description = "A Scss compiler for Python"; 33 homepage = "https://pyscss.readthedocs.org/en/latest/"; 34 license = licenses.mit; 35 maintainers = with maintainers; [ ]; 36 }; 37}