at master 857 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 setuptools, 6 nix-update-script, 7}: 8 9buildPythonPackage rec { 10 pname = "ptest"; 11 version = "2.0.3"; 12 pyproject = true; 13 14 src = fetchFromGitHub { 15 owner = "KarlGong"; 16 repo = "ptest"; 17 tag = "${version}-release"; 18 hash = "sha256-lmiBqFWGfYdsBXCh6dQ9xed+HhpP6PWa9Csr68GtLxs="; 19 }; 20 21 build-system = [ setuptools ]; 22 23 pythonImportsCheck = [ "ptest" ]; 24 25 # I don't know how to run the tests 26 doCheck = false; 27 28 passthru.updateScript = nix-update-script { 29 extraArgs = [ 30 "--version-regex" 31 "(.*)-release" 32 ]; 33 }; 34 35 meta = { 36 description = "Test classes and test cases using decorators, execute test cases by command line, and get clear reports"; 37 homepage = "https://pypi.python.org/pypi/ptest"; 38 license = lib.licenses.asl20; 39 mainProgram = "ptest"; 40 }; 41}