1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-20 04:48:10 +00:00
nixpkgs/pkgs/development/python-modules/pyscss/default.nix

40 lines
753 B
Nix
Raw Normal View History

{ stdenv
, buildPythonPackage
, fetchFromGitHub
, pytest
, six
, enum34
, pathlib
, ordereddict
, pythonOlder
}:
2020-06-08 20:11:11 +01:00
buildPythonPackage rec {
pname = "pyScss";
2020-06-08 20:11:11 +01:00
version = "1.3.7";
src = fetchFromGitHub {
repo = "pyScss";
owner = "Kronuz";
2020-06-08 20:11:11 +01:00
rev = version;
sha256 = "0701hziiiw67blafgpmjhzspmrss8mfvif7fw0rs8fikddwwc9g6";
};
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";
homepage = "https://pyscss.readthedocs.org/en/latest/";
license = licenses.mit;
};
}