1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pythonOlder,
6 setuptools,
7}:
8
9buildPythonPackage rec {
10 pname = "mitogen";
11 version = "0.3.7";
12 pyproject = true;
13
14 disabled = pythonOlder "3.7";
15
16 src = fetchFromGitHub {
17 owner = "mitogen-hq";
18 repo = "mitogen";
19 rev = "refs/tags/v${version}";
20 hash = "sha256-RcgAyBF5qNw8Hp//aq6UuvElhUjJXS+ySSXsSweyFXE=";
21 };
22
23 build-system = [ setuptools ];
24
25 # Tests require network access and Docker support
26 doCheck = false;
27
28 pythonImportsCheck = [ "mitogen" ];
29
30 meta = with lib; {
31 description = "Python Library for writing distributed self-replicating programs";
32 homepage = "https://github.com/mitogen-hq/mitogen";
33 changelog = "https://github.com/mitogen-hq/mitogen/blob/v${version}/docs/changelog.rst";
34 license = licenses.bsd3;
35 maintainers = with maintainers; [ fab ];
36 };
37}