2017-09-08 04:01:41 +02:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2019-03-05 13:30:39 +01:00
|
|
|
, substituteAll
|
2017-09-08 04:01:41 +02:00
|
|
|
, supervise
|
2017-12-28 18:56:52 +01:00
|
|
|
, isPy3k
|
|
|
|
, whichcraft
|
2018-05-03 16:42:01 +02:00
|
|
|
, utillinux
|
2017-09-08 04:01:41 +02:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "supervise_api";
|
2018-06-12 18:47:07 +02:00
|
|
|
version = "0.6.0";
|
2017-09-08 04:01:41 +02:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-06-12 18:47:07 +02:00
|
|
|
sha256 = "1230f42294910e83421b7d3b08a968d27d510a4a709e966507ed70db5da1b9de";
|
2017-09-08 04:01:41 +02:00
|
|
|
};
|
|
|
|
|
2019-03-05 13:30:39 +01:00
|
|
|
patches = [
|
|
|
|
(substituteAll {
|
|
|
|
src = ./supervise-path.patch;
|
|
|
|
inherit supervise;
|
|
|
|
})
|
2017-12-28 18:56:52 +01:00
|
|
|
];
|
2019-03-05 13:30:39 +01:00
|
|
|
|
|
|
|
# In the git repo, supervise_api lives inside a python subdir
|
|
|
|
patchFlags = [ "-p2" ];
|
|
|
|
|
|
|
|
propagatedBuildInputs = lib.optional (!isPy3k) whichcraft;
|
|
|
|
|
2018-05-03 16:42:01 +02:00
|
|
|
checkInputs = [ utillinux ];
|
2017-09-08 04:01:41 +02:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "An API for running processes safely and securely";
|
|
|
|
homepage = https://github.com/catern/supervise;
|
|
|
|
license = lib.licenses.lgpl3;
|
|
|
|
maintainers = with lib.maintainers; [ catern ];
|
|
|
|
};
|
|
|
|
}
|