02cf88bb76
GitOrigin-RevId: c4a0efdd5a728e20791b8d8d2f26f90ac228ee8d
46 lines
966 B
Nix
46 lines
966 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, msgpack
|
|
, oslo-utils
|
|
, oslotest
|
|
, pbr
|
|
, pytz
|
|
, stestr
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "oslo-serialization";
|
|
version = "5.0.0";
|
|
|
|
src = fetchPypi {
|
|
pname = "oslo.serialization";
|
|
inherit version;
|
|
sha256 = "sha256-KEUyjQ9H3Ioj/tKoIlPpCs/wqnMdvSTzec+OUObMZro=";
|
|
};
|
|
|
|
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
|
|
'';
|
|
|
|
nativeBuildInputs = [ pbr ];
|
|
|
|
propagatedBuildInputs = [ msgpack oslo-utils pytz ];
|
|
|
|
checkInputs = [ oslotest stestr ];
|
|
|
|
checkPhase = ''
|
|
stestr run
|
|
'';
|
|
|
|
pythonImportsCheck = [ "oslo_serialization" ];
|
|
|
|
meta = with lib; {
|
|
description = "Oslo Serialization library";
|
|
homepage = "https://github.com/openstack/oslo.serialization";
|
|
license = licenses.asl20;
|
|
maintainers = teams.openstack.members;
|
|
};
|
|
}
|