Merge pull request #187581 from onny/tinycss2

This commit is contained in:
Sandro 2022-09-02 11:54:26 +02:00 committed by GitHub
commit 2cedcf40e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,38 +4,41 @@
, fetchFromGitHub
, webencodings
, pytestCheckHook
, flit-core
}:
buildPythonPackage rec {
pname = "tinycss2";
version = "1.1.0";
disabled = pythonOlder "3.5";
version = "1.1.1";
format = "flit";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "kozea";
repo = "tinycss2";
rev = "v${version}";
# for tests
fetchSubmodules = true;
sha256 = "sha256-WA88EYolL76WqeA1UKR3Sfw11j8NuOGOxPezujYizH8=";
sha256 = "sha256-RUF/3cjNgDFofoxl9iKY3u5ZAVVQmXu2Qbb5U4brdcQ=";
};
propagatedBuildInputs = [ webencodings ];
checkInputs = [
pytestCheckHook
];
postPatch = ''
substituteInPlace pyproject.toml \
--replace "'pytest-cov', 'pytest-flake8', 'pytest-isort', 'coverage[toml]'" "" \
--replace "--isort --flake8 --cov" ""
--replace "--isort --flake8 --cov --no-cov-on-fail" ""
'';
nativeBuildInputs = [ flit-core ];
propagatedBuildInputs = [ webencodings ];
checkInputs = [ pytestCheckHook ];
meta = with lib; {
description = "Low-level CSS parser for Python";
homepage = "https://github.com/Kozea/tinycss2";
license = licenses.bsd3;
maintainers = with maintainers; [ onny ];
};
}