1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-17 19:21:04 +00:00

python311Packages.stevedore: 5.2.0 -> 5.3.0

https://github.com/openstack/stevedore/compare/5.2.0...5.3.0
This commit is contained in:
Anthony ROUSSEL 2024-08-30 22:24:20 +02:00
parent 8cad130f38
commit fc470cc822
2 changed files with 49 additions and 9 deletions

View file

@ -1,38 +1,49 @@
{
lib,
buildPythonPackage,
callPackage,
fetchPypi,
pythonOlder,
importlib-metadata,
pbr,
setuptools,
six,
}:
buildPythonPackage rec {
pname = "stevedore";
version = "5.2.0";
format = "setuptools";
disabled = pythonOlder "3.6";
version = "5.3.0";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchPypi {
inherit pname version;
hash = "sha256-Rrk8pA4RFM6pPXOKbB42U5aYG7a7eMJwRbdYfJRzVE0=";
hash = "sha256-mmQmX0BgMSgoFRwgTvvpt6mFKg2SKHVjRNvH5AI+N1o=";
};
propagatedBuildInputs = [
build-system = [
pbr
setuptools
six
] ++ lib.optionals (pythonOlder "3.8") [ importlib-metadata ];
];
dependencies = [
importlib-metadata
setuptools
];
# Checks moved to 'passthru.tests' to workaround infinite recursion
doCheck = false;
passthru.tests = {
tests = callPackage ./tests.nix { };
};
pythonImportsCheck = [ "stevedore" ];
meta = with lib; {
description = "Manage dynamic plugins for Python applications";
homepage = "https://docs.openstack.org/stevedore/";
license = licenses.asl20;
maintainers = with maintainers; [ fab ];
maintainers = teams.openstack.members ++ (with maintainers; [ fab ]);
};
}

View file

@ -0,0 +1,29 @@
{
buildPythonPackage,
docutils,
sphinx,
stestr,
stevedore,
}:
buildPythonPackage {
pname = "stevedore-tests";
inherit (stevedore) version src;
format = "other";
dontBuild = true;
dontInstall = true;
nativeCheckInputs = [
docutils
sphinx
stestr
stevedore
];
checkPhase = ''
runHook preCheck
stestr run
runHook postCheck
'';
}