My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/development/python-modules/oslo-serialization/default.nix

46 lines
966 B

{ lib
, buildPythonPackage
, fetchPypi
, msgpack
, oslo-utils
, oslotest
, pbr
, pytz
, stestr
}:
buildPythonPackage rec {
pname = "oslo-serialization";
version = "4.3.0";
src = fetchPypi {
pname = "oslo.serialization";
inherit version;
sha256 = "sha256-OqRy9DSu6LvMByUxK39AmqH6VLvBNJBBJM9JsOhrkRU=";
};
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 ];
checkInputs = [ 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;
};
}