diff options
author | Robert Schütz <dev@schuetz-co.de> | 2021-03-10 13:35:01 +0100 |
---|---|---|
committer | Robert Schütz <dev@schuetz-co.de> | 2021-03-10 13:45:24 +0100 |
commit | acd9216651933f434d57db5d9582dd7afce2d47a (patch) | |
tree | e67e58db5b15c8cd1d2f96ff96948d56e2104432 /pkgs/development/python-modules/cssutils | |
parent | 29b0d4d0b600f8f5dd0b86e3362a33d4181938f9 (diff) |
pythonPackages.cssutils: 1.0.2 -> 2.0.0
Upstream has a new maintainer and now requires Python 3.6 or later.
Diffstat (limited to 'pkgs/development/python-modules/cssutils')
-rw-r--r-- | pkgs/development/python-modules/cssutils/default.nix | 32 |
1 files changed, 24 insertions, 8 deletions
diff --git a/pkgs/development/python-modules/cssutils/default.nix b/pkgs/development/python-modules/cssutils/default.nix index a12fbf48c8205..4ea08c8a7b0ca 100644 --- a/pkgs/development/python-modules/cssutils/default.nix +++ b/pkgs/development/python-modules/cssutils/default.nix @@ -1,22 +1,38 @@ -{ lib, buildPythonPackage, fetchPypi, mock }: +{ lib +, buildPythonPackage +, isPy27 +, fetchPypi +, mock +, pytestCheckHook +}: buildPythonPackage rec { pname = "cssutils"; - version = "1.0.2"; + version = "2.0.0"; + + disabled = isPy27; src = fetchPypi { inherit pname version; - sha256 = "a2fcf06467553038e98fea9cfe36af2bf14063eb147a70958cfcaa8f5786acaf"; + sha256 = "984b5dbe3a2a0483d7cb131609a17f4cbaa34dda306c419924858a88588fed7c"; }; - buildInputs = [ mock ]; + checkInputs = [ + mock + pytestCheckHook + ]; + + disabledTests = [ + "test_parseUrl" # accesses network + ]; - # couple of failing tests - doCheck = false; + pythonImportsCheck = [ "cssutils" ]; meta = with lib; { - description = "A Python package to parse and build CSS"; - homepage = "http://cthedot.de/cssutils/"; + 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"; license = licenses.lgpl3Plus; + maintainers = with maintainers; [ dotlambda ]; }; } |