Unverified Commit 58ad2344 authored by OTABI Tomoya's avatar OTABI Tomoya Committed by GitHub
Browse files

Merge pull request #265243 from natsukium/lazr

python311Packages.lazr-config: 2.2.3 -> 3.0; python311Packages.lazr-delegates: 2.0.4 -> 2.1.0; rename
parents c4f96682 62ea8683
Loading
Loading
Loading
Loading
+48 −7
Original line number Diff line number Diff line
{ buildPythonPackage, fetchPypi, lazr_delegates }:
{ lib
, buildPythonPackage
, fetchPypi
, setuptools
, lazr-delegates
, zope_interface
, pytestCheckHook
}:

buildPythonPackage rec {
  pname = "lazr-config";
  version = "3.0";
  pyproject = true;

  src = fetchPypi {
    pname = "lazr.config";
  version = "2.2.3";
    inherit version;
    hash = "sha256-oU5PbMCa68HUCxdhWK6g7uIlLBQAO40O8LMcfFFMNkQ=";
  };

  propagatedBuildInputs = [ lazr_delegates ];
  nativeBuildInputs = [
    setuptools
  ];

  src = fetchPypi {
    inherit pname version;
    sha256 = "b74a73f8b63e6dc6732fc1f3d88e2f236596ddf089ef6e1794ece060e8cfabe1";
  propagatedBuildInputs = [
    lazr-delegates
    zope_interface
  ];

  pythonImportsCheck = [
    "lazr.config"
  ];

  nativeCheckInputs = [
    pytestCheckHook
  ];

  # change the directory to avoid a namespace-related problem
  # ModuleNotFoundError: No module named 'lazr.delegates'
  preCheck = ''
    cd $out
  '';

  pythonNamespaces = [
    "lazr"
  ];

  meta = with lib; {
    description = "Create configuration schemas, and process and validate configurations";
    homepage = "https://launchpad.net/lazr.config";
    changelog = "https://git.launchpad.net/lazr.config/tree/NEWS.rst?h=${version}";
    license = licenses.lgpl3Only;
  };
}
+39 −8
Original line number Diff line number Diff line
{ buildPythonPackage, fetchPypi, nose, zope_interface }:
{ lib
, buildPythonPackage
, fetchPypi
, setuptools
, zope_interface
, pytestCheckHook
}:

buildPythonPackage rec {
  pname = "lazr-delegates";
  version = "2.1.0";
  pyproject = true;

  src = fetchPypi {
    pname = "lazr.delegates";
  version = "2.0.4";
    inherit version;
    hash = "sha256-UNT7iHK5UuV6SOEmEOVQ+jBm7rV8bGx1tqUUJBi6wZw=";
  };

  propagatedBuildInputs = [ nose zope_interface ];
  nativeBuildInputs = [
    setuptools
  ];

  doCheck = false;  # cannot import name 'ClassType' from 'types'
  propagatedBuildInputs = [
    zope_interface
  ];

  src = fetchPypi {
    inherit pname version;
    sha256 = "1rdnl85j9ayp8n85l0ciip621j9dcziz5qnmv2m7krgwgcn31vfx";
  pythonImportsCheck = [
    "lazr.delegates"
  ];

  nativeCheckInputs = [
    pytestCheckHook
  ];

  pythonNamespaces = [
    "lazr"
  ];

  meta = with lib; {
    description = "Easily write objects that delegate behavior";
    homepage = "https://launchpad.net/lazr.delegates";
    changelog = "https://git.launchpad.net/lazr.delegates/tree/NEWS.rst?h=${version}";
    license = licenses.lgpl3Only;
  };
}
+1 −1
Original line number Diff line number Diff line
@@ -29,7 +29,7 @@ buildPythonPackage rec {
    flufl_i18n
    flufl_lock
    gunicorn
    lazr_config
    lazr-config
    passlib
    requests
    sqlalchemy
+2 −0
Original line number Diff line number Diff line
@@ -216,6 +216,8 @@ mapAliases ({
  Keras = keras; # added 2021-11-25
  ldap = python-ldap; # added 2022-09-16
  lammps-cython = throw "lammps-cython no longer builds and is unmaintained"; # added 2021-07-04
  lazr_config = lazr-config; # added 2023-11-03
  lazr_delegates = lazr-delegates; # added 2023-11-03
  lazy_imports = lazy-imports; # added 2023-10-13
  lektor = throw "lektor has been promoted to a top-level attribute"; # added 2023-08-01
  logilab_astng = throw "logilab-astng has not been released since 2013 and is unmaintained"; # added 2022-11-29
+2 −2
Original line number Diff line number Diff line
@@ -6046,9 +6046,9 @@ self: super: with self; {
  layoutparser = callPackage ../development/python-modules/layoutparser { };
  lazr_config = callPackage ../development/python-modules/lazr/config.nix { };
  lazr-config = callPackage ../development/python-modules/lazr/config.nix { };
  lazr_delegates = callPackage ../development/python-modules/lazr/delegates.nix { };
  lazr-delegates = callPackage ../development/python-modules/lazr/delegates.nix { };
  lazr-restfulclient = callPackage ../development/python-modules/lazr-restfulclient { };