1{ lib 2, buildPythonPackage 3, fetchPypi 4, msgpack 5, oslo-utils 6, oslotest 7, pbr 8, pytz 9, stestr 10}: 11 12buildPythonPackage rec { 13 pname = "oslo-serialization"; 14 version = "5.2.0"; 15 16 src = fetchPypi { 17 pname = "oslo.serialization"; 18 inherit version; 19 hash = "sha256-nPAw1hpszh9Hpi1AUPXoPhvRoQGKxnG7GTruB9Fb28I="; 20 }; 21 22 postPatch = '' 23 # only a small portion of the listed packages are actually needed for running the tests 24 # so instead of removing them one by one remove everything 25 rm test-requirements.txt 26 ''; 27 28 nativeBuildInputs = [ pbr ]; 29 30 propagatedBuildInputs = [ msgpack oslo-utils pytz ]; 31 32 nativeCheckInputs = [ oslotest stestr ]; 33 34 checkPhase = '' 35 stestr run 36 ''; 37 38 pythonImportsCheck = [ "oslo_serialization" ]; 39 40 meta = with lib; { 41 description = "Oslo Serialization library"; 42 homepage = "https://github.com/openstack/oslo.serialization"; 43 license = licenses.asl20; 44 maintainers = teams.openstack.members; 45 }; 46}