2018-10-26 15:30:51 +00:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pytest
|
|
|
|
, six
|
|
|
|
, enum34
|
|
|
|
, pathlib
|
|
|
|
, ordereddict
|
|
|
|
, pythonOlder
|
|
|
|
}:
|
|
|
|
|
2019-08-13 21:52:01 +00:00
|
|
|
buildPythonPackage {
|
2018-10-26 15:30:51 +00:00
|
|
|
pname = "pyScss";
|
|
|
|
version = "1.3.5";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
sha256 = "0lfsan74vcw6dypb196gmbprvlbran8p7w6czy8hyl2b1l728mhz";
|
|
|
|
rev = "v1.3.5";
|
|
|
|
repo = "pyScss";
|
|
|
|
owner = "Kronuz";
|
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [ pytest ];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ six ]
|
|
|
|
++ (stdenv.lib.optionals (pythonOlder "3.4") [ enum34 pathlib ])
|
|
|
|
++ (stdenv.lib.optionals (pythonOlder "2.7") [ ordereddict ]);
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
py.test
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A Scss compiler for Python";
|
2019-04-22 08:24:21 +00:00
|
|
|
homepage = https://pyscss.readthedocs.org/en/latest/;
|
2018-10-26 15:30:51 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|