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