depot/third_party/nixpkgs/pkgs/development/python-modules/supervise-api/default.nix
Default email 5ca88bfbb9 Project import generated by Copybara.
GitOrigin-RevId: 9f918d616c5321ad374ae6cb5ea89c9e04bf3e58
2024-07-31 10:19:44 +00:00

39 lines
861 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
supervise,
setuptools,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "supervise-api";
version = "0.6.0";
pyproject = true;
src = fetchPypi {
pname = "supervise_api";
inherit version;
hash = "sha256-EjD0IpSRDoNCG307CKlo0n1RCkpwnpZlB+1w212hud4=";
};
postPatch = ''
substituteInPlace supervise_api/supervise.py \
--replace 'which("supervise")' '"${supervise}/bin/supervise"'
'';
nativeBuildInputs = [ setuptools ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "supervise_api" ];
meta = {
description = "API for running processes safely and securely";
homepage = "https://github.com/catern/supervise";
license = lib.licenses.mit;
platforms = lib.platforms.linux;
maintainers = with lib.maintainers; [ catern ];
};
}