Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
995 B · 47 lines
Nix
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748{ lib, buildPythonPackage, fetchPypi, msgpack, oslo-utils, oslotest, pbr, pytz, stestr}:
buildPythonPackage rec { pname = "oslo-serialization"; version = "5.3.0"; format = "setuptools";
src = fetchPypi { pname = "oslo.serialization"; inherit version; hash = "sha256-IoiY9PM7feq8dCibMrvTAqZZw5z23akEhRD5MPxPdu0="; };
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; };}