504525a148
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
47 lines
995 B
Nix
47 lines
995 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, msgpack
|
|
, oslo-utils
|
|
, oslotest
|
|
, pbr
|
|
, pytz
|
|
, stestr
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "oslo-serialization";
|
|
version = "5.2.0";
|
|
format = "setuptools";
|
|
|
|
src = fetchPypi {
|
|
pname = "oslo.serialization";
|
|
inherit version;
|
|
hash = "sha256-nPAw1hpszh9Hpi1AUPXoPhvRoQGKxnG7GTruB9Fb28I=";
|
|
};
|
|
|
|
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;
|
|
};
|
|
}
|