2020-07-01 17:25:38 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, pythonOlder
|
|
|
|
, fetchPypi
|
|
|
|
, fetchpatch
|
2019-04-13 23:15:34 +01:00
|
|
|
, webencodings
|
2020-07-01 17:25:38 +01:00
|
|
|
# Check inputs
|
|
|
|
, pytest
|
|
|
|
, pytestrunner
|
|
|
|
, pytestcov
|
|
|
|
, pytest-flake8
|
|
|
|
, pytest-isort
|
|
|
|
}:
|
2018-04-07 12:23:09 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "tinycss2";
|
2019-04-13 23:15:34 +01:00
|
|
|
version = "1.0.2";
|
|
|
|
disabled = pythonOlder "3.5";
|
2018-04-07 12:23:09 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-04-13 23:15:34 +01:00
|
|
|
sha256 = "1kw84y09lggji4krkc58jyhsfj31w8npwhznr7lf19d0zbix09v4";
|
2018-04-07 12:23:09 +01:00
|
|
|
};
|
|
|
|
|
2020-07-01 17:25:38 +01:00
|
|
|
patches = [
|
|
|
|
(
|
|
|
|
fetchpatch {
|
|
|
|
name = "tinycss2-fix-pytest-flake8-fail.patch";
|
|
|
|
url = "https://github.com/Kozea/tinycss2/commit/6556604fb98c2153412384d6f0f705db2da1aa60.patch";
|
|
|
|
sha256 = "1srvdzg1bak65fawd611rlskcgn5abmwmyjnk8qrrrasr554bc59";
|
|
|
|
}
|
|
|
|
)
|
|
|
|
];
|
2018-04-07 12:23:09 +01:00
|
|
|
|
2019-04-13 23:15:34 +01:00
|
|
|
propagatedBuildInputs = [ webencodings ];
|
2018-04-07 12:23:09 +01:00
|
|
|
|
2019-04-13 23:15:34 +01:00
|
|
|
checkInputs = [ pytest pytestrunner pytestcov pytest-flake8 pytest-isort ];
|
2018-04-07 12:23:09 +01:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Low-level CSS parser for Python";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/Kozea/tinycss2";
|
2018-04-07 12:23:09 +01:00
|
|
|
license = licenses.bsd3;
|
|
|
|
};
|
|
|
|
}
|