at master 816 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 pythonOlder, 5 fetchFromGitHub, 6 flit-core, 7 webencodings, 8 pytest-cov-stub, 9 pytestCheckHook, 10}: 11 12buildPythonPackage rec { 13 pname = "tinycss2"; 14 version = "1.4.0"; 15 pyproject = true; 16 17 disabled = pythonOlder "3.8"; 18 19 src = fetchFromGitHub { 20 owner = "kozea"; 21 repo = "tinycss2"; 22 tag = "v${version}"; 23 # for tests 24 fetchSubmodules = true; 25 hash = "sha256-GVymUobWAE0YS65lti9dXRIIGpx0YkwF/vSb3y7cpYY="; 26 }; 27 28 build-system = [ flit-core ]; 29 30 dependencies = [ webencodings ]; 31 32 nativeCheckInputs = [ 33 pytest-cov-stub 34 pytestCheckHook 35 ]; 36 37 meta = with lib; { 38 description = "Low-level CSS parser for Python"; 39 homepage = "https://github.com/Kozea/tinycss2"; 40 license = licenses.bsd3; 41 maintainers = with maintainers; [ onny ]; 42 }; 43}