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