depot/third_party/nixpkgs/pkgs/development/python-modules/pyscss/default.nix
Default email bb584b27e9 Project import generated by Copybara.
GitOrigin-RevId: 5181d5945eda382ff6a9ca3e072ed6ea9b547fee
2022-04-15 03:41:22 +02:00

42 lines
841 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, pytest
, six
, enum34
, pathlib
, ordereddict
, pythonOlder
}:
buildPythonPackage rec {
pname = "pyScss";
version = "1.4.0";
src = fetchFromGitHub {
repo = "pyScss";
owner = "Kronuz";
rev = "refs/tags/v${version}";
sha256 = "sha256-z0y4z+/JE6rZWHAvps/taDZvutyVhxxs2gMujV5rNu4=";
};
checkInputs = [ pytest ];
propagatedBuildInputs = [ six ]
++ (lib.optionals (pythonOlder "3.4") [ enum34 pathlib ])
++ (lib.optionals (pythonOlder "2.7") [ ordereddict ]);
# Test suite is broken.
# See https://github.com/Kronuz/pyScss/issues/415
doCheck = false;
checkPhase = ''
py.test
'';
meta = with lib; {
description = "A Scss compiler for Python";
homepage = "https://pyscss.readthedocs.org/en/latest/";
license = licenses.mit;
};
}