2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
pythonAtLeast,
|
|
|
|
pythonOlder,
|
|
|
|
fetchFromGitHub,
|
|
|
|
setuptools-scm,
|
|
|
|
cssselect,
|
|
|
|
jaraco-test,
|
|
|
|
lxml,
|
|
|
|
mock,
|
|
|
|
pytestCheckHook,
|
|
|
|
importlib-resources,
|
2021-03-12 07:09:13 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "cssutils";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "2.10.2";
|
|
|
|
pyproject = true;
|
2021-03-12 07:09:13 +00:00
|
|
|
|
2023-10-19 13:55:26 +00:00
|
|
|
disabled = pythonOlder "3.8";
|
2022-03-05 16:20:37 +00:00
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jaraco";
|
|
|
|
repo = "cssutils";
|
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
hash = "sha256-1sAn6pFwWsnYS1eHQmyDNGTo6kdhL1vJBwUptADvHyo=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
build-system = [ setuptools-scm ];
|
2021-03-23 19:22:30 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-05-29 03:34:57 +00:00
|
|
|
cssselect
|
2022-06-16 17:23:12 +00:00
|
|
|
jaraco-test
|
2021-05-29 03:34:57 +00:00
|
|
|
lxml
|
2021-03-12 07:09:13 +00:00
|
|
|
mock
|
|
|
|
pytestCheckHook
|
2024-06-05 15:53:02 +00:00
|
|
|
] ++ lib.optionals (pythonOlder "3.9") [ importlib-resources ];
|
2021-03-12 07:09:13 +00:00
|
|
|
|
|
|
|
disabledTests = [
|
2021-03-23 19:22:30 +00:00
|
|
|
# access network
|
|
|
|
"encutils"
|
2021-05-29 03:34:57 +00:00
|
|
|
"website.logging"
|
2021-03-12 07:09:13 +00:00
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-03-12 07:09:13 +00:00
|
|
|
pythonImportsCheck = [ "cssutils" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "CSS Cascading Style Sheets library for Python";
|
2021-03-12 07:09:13 +00:00
|
|
|
homepage = "https://github.com/jaraco/cssutils";
|
2024-04-21 15:54:59 +00:00
|
|
|
changelog = "https://github.com/jaraco/cssutils/blob/${src.rev}/NEWS.rst";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.lgpl3Plus;
|
2021-03-12 07:09:13 +00:00
|
|
|
maintainers = with maintainers; [ dotlambda ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|