Commit 46f803e2 authored by Robert Schütz's avatar Robert Schütz
Browse files
parent 4a660d5b
Loading
Loading
Loading
Loading
+10 −17
Original line number Diff line number Diff line
@@ -2,9 +2,7 @@
, buildPythonPackage
, pythonAtLeast
, pythonOlder
, fetchpatch
, fetchPypi
, setuptools
, fetchFromGitHub
, setuptools-scm
, cssselect
, jaraco-test
@@ -16,19 +14,20 @@

buildPythonPackage rec {
  pname = "cssutils";
  version = "2.9.0";
  version = "2.10.1";
  pyproject = true;

  disabled = pythonOlder "3.8";

  format = "pyproject";

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-iUd7PRfXkOl7n7Te9wh2cGEFV5Wq5vfIKuMulnyb5M0=";
  src = fetchFromGitHub {
    owner = "jaraco";
    repo = "cssutils";
    rev = "refs/tags/v${version}";
    hash = "sha256-FK+EHdfsuCnWmnfUH18gyMq6CBXICBbhJj3XrscLLOA=";
  };

  nativeBuildInputs = [
    setuptools
  build-system = [
    setuptools-scm
  ];

@@ -42,14 +41,8 @@ buildPythonPackage rec {
    importlib-resources
  ];

  pytestFlagsArray = [
    # pytest.PytestRemovedIn8Warning: Support for nose tests is deprecated and will be removed in a future release.
    "-W" "ignore::pytest.PytestRemovedIn8Warning"
  ];

  disabledTests = [
    # access network
    "test_parseUrl"
    "encutils"
    "website.logging"
  ];
@@ -59,7 +52,7 @@ buildPythonPackage rec {
  meta = with lib; {
    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";
    changelog = "https://github.com/jaraco/cssutils/blob/${src.rev}/NEWS.rst";
    license = licenses.lgpl3Plus;
    maintainers = with maintainers; [ dotlambda ];
  };