2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv
|
2018-10-26 16:30:51 +01:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pytest
|
|
|
|
, six
|
|
|
|
, enum34
|
|
|
|
, pathlib
|
|
|
|
, ordereddict
|
|
|
|
, pythonOlder
|
|
|
|
}:
|
|
|
|
|
2020-06-08 20:11:11 +01:00
|
|
|
buildPythonPackage rec {
|
2018-10-26 16:30:51 +01:00
|
|
|
pname = "pyScss";
|
2020-06-08 20:11:11 +01:00
|
|
|
version = "1.3.7";
|
2018-10-26 16:30:51 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
repo = "pyScss";
|
|
|
|
owner = "Kronuz";
|
2020-06-08 20:11:11 +01:00
|
|
|
rev = version;
|
|
|
|
sha256 = "0701hziiiw67blafgpmjhzspmrss8mfvif7fw0rs8fikddwwc9g6";
|
2018-10-26 16:30:51 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [ pytest ];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ six ]
|
|
|
|
++ (stdenv.lib.optionals (pythonOlder "3.4") [ enum34 pathlib ])
|
|
|
|
++ (stdenv.lib.optionals (pythonOlder "2.7") [ ordereddict ]);
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
py.test
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-10-26 16:30:51 +01:00
|
|
|
description = "A Scss compiler for Python";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://pyscss.readthedocs.org/en/latest/";
|
2018-10-26 16:30:51 +01:00
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|