1{ lib 2, buildPythonPackage 3, fetchPypi 4, substituteAll 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 = [ 27 setuptools 28 ]; 29 30 nativeCheckInputs = [ 31 pytestCheckHook 32 ]; 33 34 pythonImportsCheck = [ 35 "supervise_api" 36 ]; 37 38 meta = { 39 description = "An API for running processes safely and securely"; 40 homepage = "https://github.com/catern/supervise"; 41 license = lib.licenses.mit; 42 platforms = lib.platforms.linux; 43 maintainers = with lib.maintainers; [ catern ]; 44 }; 45}