62 lines
1.1 KiB
Nix
62 lines
1.1 KiB
Nix
|
{
|
||
|
lib,
|
||
|
buildPythonPackage,
|
||
|
fetchPypi,
|
||
|
msgpack,
|
||
|
oslo-utils,
|
||
|
oslotest,
|
||
|
pbr,
|
||
|
pytz,
|
||
|
setuptools,
|
||
|
stestr,
|
||
|
}:
|
||
|
|
||
|
buildPythonPackage rec {
|
||
|
pname = "oslo-serialization";
|
||
|
version = "5.5.0";
|
||
|
pyproject = true;
|
||
|
|
||
|
src = fetchPypi {
|
||
|
pname = "oslo.serialization";
|
||
|
inherit version;
|
||
|
hash = "sha256-nnUvxdipdZVnKN2WqCGGeDs/78rLs1U6zZMwWIYeFaY=";
|
||
|
};
|
||
|
|
||
|
postPatch = ''
|
||
|
# only a small portion of the listed packages are actually needed for running the tests
|
||
|
# so instead of removing them one by one remove everything
|
||
|
rm test-requirements.txt
|
||
|
'';
|
||
|
|
||
|
build-system = [
|
||
|
pbr
|
||
|
setuptools
|
||
|
];
|
||
|
|
||
|
dependencies = [
|
||
|
msgpack
|
||
|
oslo-utils
|
||
|
pytz
|
||
|
];
|
||
|
|
||
|
nativeCheckInputs = [
|
||
|
oslotest
|
||
|
stestr
|
||
|
];
|
||
|
|
||
|
checkPhase = ''
|
||
|
runHook preCheck
|
||
|
stestr run
|
||
|
runHook postCheck
|
||
|
'';
|
||
|
|
||
|
pythonImportsCheck = [ "oslo_serialization" ];
|
||
|
|
||
|
meta = with lib; {
|
||
|
description = "Oslo Serialization library";
|
||
|
homepage = "https://github.com/openstack/oslo.serialization";
|
||
|
license = licenses.asl20;
|
||
|
maintainers = teams.openstack.members;
|
||
|
};
|
||
|
}
|