2021-03-10 13:35:01 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2021-03-12 19:11:58 +01:00
|
|
|
, pythonOlder
|
2021-03-10 13:35:01 +01:00
|
|
|
, fetchPypi
|
2021-03-12 19:11:58 +01:00
|
|
|
, setuptools-scm
|
|
|
|
, toml
|
|
|
|
, importlib-metadata
|
2021-03-10 13:35:01 +01:00
|
|
|
, mock
|
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
2018-04-03 13:13:12 +02:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "cssutils";
|
2021-03-12 19:11:58 +01:00
|
|
|
version = "2.2.0";
|
2021-03-10 13:35:01 +01:00
|
|
|
|
2021-03-12 19:11:58 +01:00
|
|
|
disabled = pythonOlder "3.6";
|
2018-04-03 13:13:12 +02:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-03-12 19:11:58 +01:00
|
|
|
sha256 = "5bef59f6b59bdccbea8e36cb292d2be1b6be1b485fc4a9f5886616f19eb31aaf";
|
2018-04-03 13:13:12 +02:00
|
|
|
};
|
|
|
|
|
2021-03-12 19:11:58 +01:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools-scm
|
|
|
|
toml
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = lib.optionals (pythonOlder "3.8") [
|
|
|
|
importlib-metadata
|
|
|
|
];
|
|
|
|
|
2021-03-10 13:35:01 +01:00
|
|
|
checkInputs = [
|
|
|
|
mock
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
disabledTests = [
|
2021-03-12 19:11:58 +01:00
|
|
|
# access network
|
|
|
|
"test_parseUrl"
|
|
|
|
"encutils"
|
2021-03-10 13:35:01 +01:00
|
|
|
];
|
2018-04-03 13:13:12 +02:00
|
|
|
|
2021-03-10 13:35:01 +01:00
|
|
|
pythonImportsCheck = [ "cssutils" ];
|
2018-04-03 13:13:12 +02:00
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2021-03-10 13:35:01 +01:00
|
|
|
description = "A CSS Cascading Style Sheets library for Python";
|
|
|
|
homepage = "https://github.com/jaraco/cssutils";
|
|
|
|
changelog = "https://github.com/jaraco/cssutils/blob/v${version}/CHANGES.rst";
|
2018-04-03 13:13:12 +02:00
|
|
|
license = licenses.lgpl3Plus;
|
2021-03-10 13:35:01 +01:00
|
|
|
maintainers = with maintainers; [ dotlambda ];
|
2018-04-03 13:13:12 +02:00
|
|
|
};
|
|
|
|
}
|