1{ lib 2, buildPythonPackage 3, fetchPypi 4, fixtures 5, pbr 6, subunit 7, callPackage 8}: 9 10buildPythonPackage rec { 11 pname = "oslotest"; 12 version = "4.5.0"; 13 14 src = fetchPypi { 15 inherit pname version; 16 sha256 = "360ad2c41ba3ad6f059c7c6e7291450d082c2e5dbb0012e839a829978053dfe6"; 17 }; 18 19 nativeBuildInputs = [ pbr ]; 20 21 propagatedBuildInputs = [ 22 fixtures 23 subunit 24 ]; 25 26 # check in passthru.tests.pytest to escape infinite recursion with other oslo components 27 doCheck = false; 28 29 passthru.tests = { 30 tests = callPackage ./tests.nix {}; 31 }; 32 33 pythonImportsCheck = [ "oslotest" ]; 34 35 meta = with lib; { 36 description = "Oslo test framework"; 37 homepage = "https://github.com/openstack/oslotest"; 38 license = licenses.asl20; 39 maintainers = teams.openstack.members; 40 }; 41}