nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 46 lines 966 B view raw
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 = "4.3.0"; 15 16 src = fetchPypi { 17 pname = "oslo.serialization"; 18 inherit version; 19 sha256 = "sha256-OqRy9DSu6LvMByUxK39AmqH6VLvBNJBBJM9JsOhrkRU="; 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 checkInputs = [ 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}