depot/third_party/nixpkgs/pkgs/development/python-modules/oslo-serialization/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

55 lines
1 KiB
Nix

{
lib,
buildPythonPackage,
fetchPypi,
msgpack,
oslo-utils,
oslotest,
pbr,
pytz,
stestr,
}:
buildPythonPackage rec {
pname = "oslo-serialization";
version = "5.4.0";
format = "setuptools";
src = fetchPypi {
pname = "oslo.serialization";
inherit version;
hash = "sha256-MVyzRl6ZxoXLCRuQNly3Ab7nFA4gS6Pl/C2KILTsbnY=";
};
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
];
nativeCheckInputs = [
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;
};
}