2017-09-08 03:01:41 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, supervise
|
2017-12-28 17:56:52 +00:00
|
|
|
, isPy3k
|
|
|
|
, whichcraft
|
2017-09-08 03:01:41 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "supervise_api";
|
2018-01-28 16:56:30 +00:00
|
|
|
version = "0.3.0";
|
2017-09-08 03:01:41 +01:00
|
|
|
|
|
|
|
name = "${pname}-${version}";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-01-28 16:56:30 +00:00
|
|
|
sha256 = "13gy2m14zh6lbdm45b40ffjnw8y3dapz9hvzpwk8vyvbxj4f1vaf";
|
2017-09-08 03:01:41 +01:00
|
|
|
};
|
|
|
|
|
2017-12-28 17:56:52 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
supervise
|
|
|
|
] ++ lib.optionals ( !isPy3k ) [
|
|
|
|
whichcraft
|
|
|
|
];
|
2017-09-08 03:01:41 +01:00
|
|
|
|
|
|
|
# no tests
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|