Skip to content

Commit

Permalink
python312Packages.oslo-log: 6.1.2 -> 6.2.0; fixes; improvements (NixO…
Browse files Browse the repository at this point in the history
  • Loading branch information
natsukium authored Dec 5, 2024
2 parents 3611f5d + 45d4837 commit 048fa4f
Showing 1 changed file with 26 additions and 16 deletions.
42 changes: 26 additions & 16 deletions pkgs/development/python-modules/oslo-log/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,34 +2,42 @@
lib,
stdenv,
buildPythonPackage,
fetchPypi,
eventlet,
fetchFromGitHub,

# build-system
setuptools,

# dependencies
oslo-config,
oslo-context,
oslo-serialization,
oslo-utils,
oslotest,
pbr,
pyinotify,
python-dateutil,
pyinotify,

# tests
eventlet,
oslotest,
pytestCheckHook,
pythonOlder,
setuptools,
}:

buildPythonPackage rec {
pname = "oslo-log";
version = "6.1.2";
version = "6.2.0";
pyproject = true;

disabled = pythonOlder "3.8";

src = fetchPypi {
pname = "oslo.log";
inherit version;
hash = "sha256-92gEffnXBsSE3WZl3LvqKJAh1Iy3zlq/eh9poJSR9f4=";
src = fetchFromGitHub {
owner = "openstack";
repo = "oslo.log";
rev = "refs/tags/${version}";
hash = "sha256-IEhIhGE95zZiWp602rFc+NLco/Oyx9XEL5e2RExNBMs=";
};

# Manually set version because prb wants to get it from the git upstream repository (and we are
# installing from tarball instead)
PBR_VERSION = version;

build-system = [ setuptools ];

dependencies = [
Expand All @@ -56,11 +64,13 @@ buildPythonPackage rec {

pythonImportsCheck = [ "oslo_log" ];

meta = with lib; {
__darwinAllowLocalNetworking = true;

meta = {
description = "oslo.log library";
mainProgram = "convert-json";
homepage = "https://github.com/openstack/oslo.log";
license = licenses.asl20;
maintainers = teams.openstack.members;
license = lib.licenses.asl20;
maintainers = lib.teams.openstack.members;
};
}

0 comments on commit 048fa4f

Please sign in to comment.