Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.03 39 lines 748 B view raw
1{ stdenv 2, buildPythonPackage 3, fetchFromGitHub 4, pytest 5, six 6, enum34 7, pathlib 8, ordereddict 9, pythonOlder 10}: 11 12buildPythonPackage { 13 pname = "pyScss"; 14 version = "1.3.5"; 15 16 src = fetchFromGitHub { 17 sha256 = "0lfsan74vcw6dypb196gmbprvlbran8p7w6czy8hyl2b1l728mhz"; 18 rev = "v1.3.5"; 19 repo = "pyScss"; 20 owner = "Kronuz"; 21 }; 22 23 checkInputs = [ pytest ]; 24 25 propagatedBuildInputs = [ six ] 26 ++ (stdenv.lib.optionals (pythonOlder "3.4") [ enum34 pathlib ]) 27 ++ (stdenv.lib.optionals (pythonOlder "2.7") [ ordereddict ]); 28 29 checkPhase = '' 30 py.test 31 ''; 32 33 meta = with stdenv.lib; { 34 description = "A Scss compiler for Python"; 35 homepage = https://pyscss.readthedocs.org/en/latest/; 36 license = licenses.mit; 37 }; 38 39}