mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-30 17:43:42 +00:00
33afbf39f6
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
47 lines
898 B
Nix
47 lines
898 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, oslotest
|
|
, pbr
|
|
, testscenarios
|
|
, stestr
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "oslo-i18n";
|
|
version = "5.1.0";
|
|
|
|
src = fetchPypi {
|
|
pname = "oslo.i18n";
|
|
inherit version;
|
|
sha256 = "6bf111a6357d5449640852de4640eae4159b5562bbba4c90febb0034abc095d0";
|
|
};
|
|
|
|
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 ];
|
|
|
|
nativeCheckInputs = [
|
|
oslotest
|
|
stestr
|
|
testscenarios
|
|
];
|
|
|
|
checkPhase = ''
|
|
stestr run
|
|
'';
|
|
|
|
pythonImportsCheck = [ "oslo_i18n" ];
|
|
|
|
meta = with lib; {
|
|
description = "Oslo i18n library";
|
|
homepage = "https://github.com/openstack/oslo.i18n";
|
|
license = licenses.asl20;
|
|
maintainers = teams.openstack.members;
|
|
};
|
|
}
|