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