mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-30 17:43:42 +00:00
33afbf39f6
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
41 lines
843 B
Nix
41 lines
843 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, substituteAll
|
|
, supervise
|
|
, isPy3k
|
|
, whichcraft
|
|
, util-linux
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "supervise_api";
|
|
version = "0.6.0";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "1230f42294910e83421b7d3b08a968d27d510a4a709e966507ed70db5da1b9de";
|
|
};
|
|
|
|
patches = [
|
|
(substituteAll {
|
|
src = ./supervise-path.patch;
|
|
inherit supervise;
|
|
})
|
|
];
|
|
|
|
# In the git repo, supervise_api lives inside a python subdir
|
|
patchFlags = [ "-p2" ];
|
|
|
|
propagatedBuildInputs = lib.optional (!isPy3k) whichcraft;
|
|
|
|
nativeCheckInputs = [ util-linux ];
|
|
|
|
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 ];
|
|
};
|
|
}
|