nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenv,
4 buildPythonPackage,
5 fetchPypi,
6 mock,
7 pytestCheckHook,
8 setuptools,
9}:
10
11let
12 pname = "supervisor";
13
14 version = "4.3.0";
15in
16buildPythonPackage {
17 inherit pname version;
18 pyproject = true;
19
20 src = fetchPypi {
21 inherit pname version;
22 hash = "sha256-SivxSa30KZfhu0S3DEO2EydeyYUsPtrMqGqRZrJ+lF4=";
23 };
24
25 build-system = [ setuptools ];
26
27 # wants to write to /tmp/foo which is likely already owned by another
28 # nixbld user on hydra
29 doCheck = !stdenv.hostPlatform.isDarwin;
30
31 nativeCheckInputs = [
32 mock
33 pytestCheckHook
34 ];
35
36 pythonImportsCheck = [ "supervisor" ];
37
38 meta = {
39 description = "System for controlling process state under UNIX";
40 homepage = "https://supervisord.org/";
41 changelog = "https://github.com/Supervisor/supervisor/blob/${version}/CHANGES.rst";
42 license = lib.licenses.free; # http://www.repoze.org/LICENSE.txt
43 maintainers = with lib.maintainers; [ zimbatm ];
44 };
45}