at master 837 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 python, 6 pythonOlder, 7}: 8 9buildPythonPackage rec { 10 pname = "plac"; 11 version = "1.4.5"; 12 format = "setuptools"; 13 14 disabled = pythonOlder "3.7"; 15 16 src = fetchFromGitHub { 17 owner = "ialbert"; 18 repo = "plac"; 19 tag = "v${version}"; 20 hash = "sha256-GcPZ9Ufr2NU+95XZRVgB0+cKGAc17kIYxuxYvWiq//4="; 21 }; 22 23 # tests are broken, see https://github.com/ialbert/plac/issues/74 24 doCheck = false; 25 26 checkPhase = '' 27 runHook preCheck 28 29 ${python.interpreter} doc/test_plac.py 30 31 runHook postCheck 32 ''; 33 34 pythonImportsCheck = [ "plac" ]; 35 36 meta = with lib; { 37 description = "Parsing the Command Line the Easy Way"; 38 mainProgram = "plac_runner.py"; 39 homepage = "https://github.com/micheles/plac"; 40 license = licenses.bsdOriginal; 41 maintainers = [ ]; 42 }; 43}