1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 supervise, 6 setuptools, 7 pytestCheckHook, 8}: 9 10buildPythonPackage rec { 11 pname = "supervise-api"; 12 version = "0.6.0"; 13 pyproject = true; 14 15 src = fetchPypi { 16 pname = "supervise_api"; 17 inherit version; 18 hash = "sha256-EjD0IpSRDoNCG307CKlo0n1RCkpwnpZlB+1w212hud4="; 19 }; 20 21 postPatch = '' 22 substituteInPlace supervise_api/supervise.py \ 23 --replace 'which("supervise")' '"${supervise}/bin/supervise"' 24 ''; 25 26 nativeBuildInputs = [ setuptools ]; 27 28 nativeCheckInputs = [ pytestCheckHook ]; 29 30 pythonImportsCheck = [ "supervise_api" ]; 31 32 meta = { 33 description = "API for running processes safely and securely"; 34 homepage = "https://github.com/catern/supervise"; 35 license = lib.licenses.mit; 36 platforms = lib.platforms.linux; 37 maintainers = with lib.maintainers; [ catern ]; 38 }; 39}