Merge pull request #116082 from dotlambda/cssutils-2.2.0

python3.pkgs.cssutils: 2.0.0 -> 2.2.0
This commit is contained in:
Sandro 2021-03-21 00:45:48 +01:00 committed by GitHub
commit 80d06a8e18
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,29 +1,43 @@
{ lib
, buildPythonPackage
, isPy27
, pythonOlder
, fetchPypi
, setuptools-scm
, toml
, importlib-metadata
, mock
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "cssutils";
version = "2.0.0";
version = "2.2.0";
disabled = isPy27;
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
sha256 = "984b5dbe3a2a0483d7cb131609a17f4cbaa34dda306c419924858a88588fed7c";
sha256 = "5bef59f6b59bdccbea8e36cb292d2be1b6be1b485fc4a9f5886616f19eb31aaf";
};
nativeBuildInputs = [
setuptools-scm
toml
];
propagatedBuildInputs = lib.optionals (pythonOlder "3.8") [
importlib-metadata
];
checkInputs = [
mock
pytestCheckHook
];
disabledTests = [
"test_parseUrl" # accesses network
# access network
"test_parseUrl"
"encutils"
];
pythonImportsCheck = [ "cssutils" ];