567e8dfd8e
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
46 lines
817 B
Nix
46 lines
817 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
fixtures,
|
|
pbr,
|
|
six,
|
|
subunit,
|
|
callPackage,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "oslotest";
|
|
version = "6.0.0";
|
|
format = "setuptools";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-CHBKOnoEtZtQAu5YTFPKlYn0VU/hAA5nbs4wwZVHgj4=";
|
|
};
|
|
|
|
nativeBuildInputs = [ pbr ];
|
|
|
|
propagatedBuildInputs = [
|
|
fixtures
|
|
six
|
|
subunit
|
|
];
|
|
|
|
# check in passthru.tests.pytest to escape infinite recursion with other oslo components
|
|
doCheck = false;
|
|
|
|
passthru.tests = {
|
|
tests = callPackage ./tests.nix { };
|
|
};
|
|
|
|
pythonImportsCheck = [ "oslotest" ];
|
|
|
|
meta = {
|
|
description = "Oslo test framework";
|
|
homepage = "https://github.com/openstack/oslotest";
|
|
license = lib.licenses.asl20;
|
|
teams = [ lib.teams.openstack ];
|
|
};
|
|
}
|