Unverified Commit 5dd15337 authored by Martin Weinelt's avatar Martin Weinelt Committed by GitHub
Browse files

python3Packages.cssutils: 2.11.1 -> 2.14.0 (#512986)

parents fc63774a 3ad1b95f
Loading
Loading
Loading
Loading
+12 −4
Original line number Diff line number Diff line
@@ -3,6 +3,7 @@
  buildPythonPackage,
  fetchFromGitHub,
  setuptools-scm,
  encutils,
  more-itertools,
  cssselect,
  jaraco-test,
@@ -13,19 +14,27 @@

buildPythonPackage rec {
  pname = "cssutils";
  version = "2.11.1";
  version = "2.14.0";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "jaraco";
    repo = "cssutils";
    tag = "v${version}";
    hash = "sha256-U9myMfKz1HpYVJXp85izRBpm2wjLHYZj8bUVt3ROTEg=";
    hash = "sha256-kuqHfwJn+GT1VIC2PWu5Oj1X6SGn/bi2QPN8kfposVs=";
  };

  postPatch = ''
    substituteInPlace pyproject.toml \
      --replace-fail '"coherent.licensed",' ""
  '';

  build-system = [ setuptools-scm ];

  dependencies = [ more-itertools ];
  dependencies = [
    encutils
    more-itertools
  ];

  nativeCheckInputs = [
    cssselect
@@ -37,7 +46,6 @@ buildPythonPackage rec {

  disabledTests = [
    # access network
    "encutils"
    "website.logging"
  ];

+39 −0
Original line number Diff line number Diff line
{
  buildPythonPackage,
  chardet,
  fetchPypi,
  flit-core,
  lib,
  pytestCheckHook,
}:

buildPythonPackage (finalAttrs: {
  pname = "encutils";
  version = "1.0.0";
  pyproject = true;

  # pyproject.toml on GitHub uses coherent.build as build-system
  src = fetchPypi {
    inherit (finalAttrs) pname version;
    hash = "sha256-OOylrxjOur2L5DwX8UydP7uoPMX3rI46schuJMSyuRo=";
  };

  build-system = [ flit-core ];

  dependencies = [
    chardet
  ];

  pythonImportsCheck = [ "encutils" ];

  nativeCheckInputs = [
    pytestCheckHook
  ];

  meta = {
    description = "Collection of helper functions to detect encodings of text files";
    homepage = "https://github.com/coherent-oss/encutils";
    license = lib.licenses.lgpl3Plus;
    maintainers = [ lib.maintainers.dotlambda ];
  };
})
+2 −0
Original line number Diff line number Diff line
@@ -5016,6 +5016,8 @@ self: super: with self; {
  encodec = callPackage ../development/python-modules/encodec { };
  encutils = callPackage ../development/python-modules/encutils { };
  energyflip-client = callPackage ../development/python-modules/energyflip-client { };
  energyflow = callPackage ../development/python-modules/energyflow { };