2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
2020-04-24 23:36:52 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pytest
|
|
|
|
, six
|
|
|
|
, enum34
|
|
|
|
, pathlib
|
|
|
|
, ordereddict
|
|
|
|
, pythonOlder
|
|
|
|
}:
|
|
|
|
|
2020-06-15 15:56:04 +00:00
|
|
|
buildPythonPackage rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "pyScss";
|
2020-06-15 15:56:04 +00:00
|
|
|
version = "1.3.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
repo = "pyScss";
|
|
|
|
owner = "Kronuz";
|
2020-06-15 15:56:04 +00:00
|
|
|
rev = version;
|
|
|
|
sha256 = "0701hziiiw67blafgpmjhzspmrss8mfvif7fw0rs8fikddwwc9g6";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [ pytest ];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ six ]
|
2021-02-05 17:12:51 +00:00
|
|
|
++ (lib.optionals (pythonOlder "3.4") [ enum34 pathlib ])
|
|
|
|
++ (lib.optionals (pythonOlder "2.7") [ ordereddict ]);
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-03-20 04:20:00 +00:00
|
|
|
# Test suite is broken.
|
|
|
|
# See https://github.com/Kronuz/pyScss/issues/415
|
|
|
|
doCheck = false;
|
2020-04-24 23:36:52 +00:00
|
|
|
checkPhase = ''
|
|
|
|
py.test
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A Scss compiler for Python";
|
|
|
|
homepage = "https://pyscss.readthedocs.org/en/latest/";
|
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|