at master 952 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 cliff, 6 fixtures, 7 flit-core, 8 subunit, 9 testtools, 10 tomlkit, 11 voluptuous, 12 callPackage, 13}: 14 15buildPythonPackage rec { 16 pname = "stestr"; 17 version = "4.2.0"; 18 pyproject = true; 19 20 src = fetchPypi { 21 inherit pname version; 22 hash = "sha256-Rexjny0cw3LjYwYTuT83zynT3+adSdTz+UCNN7Ebwpw="; 23 }; 24 25 build-system = [ 26 flit-core 27 ]; 28 29 dependencies = [ 30 cliff 31 fixtures 32 subunit 33 testtools 34 tomlkit 35 voluptuous 36 ]; 37 38 # check in passthru.tests.pytest to escape infinite recursion with other oslo components 39 doCheck = false; 40 41 passthru.tests = { 42 tests = callPackage ./tests.nix { }; 43 }; 44 45 pythonImportsCheck = [ "stestr" ]; 46 47 meta = with lib; { 48 description = "Parallel Python test runner built around subunit"; 49 mainProgram = "stestr"; 50 homepage = "https://github.com/mtreinish/stestr"; 51 license = licenses.asl20; 52 teams = [ teams.openstack ]; 53 }; 54}