2021-03-10 12:35:01 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, isPy27
|
|
|
|
, fetchPypi
|
|
|
|
, mock
|
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
2018-04-03 12:13:12 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "cssutils";
|
2021-03-10 12:35:01 +00:00
|
|
|
version = "2.0.0";
|
|
|
|
|
|
|
|
disabled = isPy27;
|
2018-04-03 12:13:12 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-03-10 12:35:01 +00:00
|
|
|
sha256 = "984b5dbe3a2a0483d7cb131609a17f4cbaa34dda306c419924858a88588fed7c";
|
2018-04-03 12:13:12 +01:00
|
|
|
};
|
|
|
|
|
2021-03-10 12:35:01 +00:00
|
|
|
checkInputs = [
|
|
|
|
mock
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
"test_parseUrl" # accesses network
|
|
|
|
];
|
2018-04-03 12:13:12 +01:00
|
|
|
|
2021-03-10 12:35:01 +00:00
|
|
|
pythonImportsCheck = [ "cssutils" ];
|
2018-04-03 12:13:12 +01:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2021-03-10 12:35:01 +00: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 12:13:12 +01:00
|
|
|
license = licenses.lgpl3Plus;
|
2021-03-10 12:35:01 +00:00
|
|
|
maintainers = with maintainers; [ dotlambda ];
|
2018-04-03 12:13:12 +01:00
|
|
|
};
|
|
|
|
}
|