blob: f7c8ebf7971cb8cb891707b0ca32c7c0dc258b50 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
{
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;
};
}
|