1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, python
5, setuptools
6
7# passthru tests
8, apache-beam
9, datasets
10}:
11
12buildPythonPackage rec {
13 pname = "dill";
14 version = "0.3.6";
15 format = "pyproject";
16
17 src = fetchFromGitHub {
18 owner = "uqfoundation";
19 repo = pname;
20 rev = "refs/tags/dill-${version}";
21 hash = "sha256-lh1o/TqnqtYN9xTZom33y1/7ZhMEAFpheLdtalwgObQ=";
22 };
23
24 nativeBuildInputs = [
25 setuptools
26 ];
27
28 checkPhase = ''
29 runHook preCheck
30 ${python.interpreter} dill/tests/__main__.py
31 runHook postCheck
32 '';
33
34 passthru.tests = {
35 inherit apache-beam datasets;
36 };
37
38 pythonImportsCheck = [ "dill" ];
39
40 meta = with lib; {
41 description = "Serialize all of python (almost)";
42 homepage = "https://github.com/uqfoundation/dill/";
43 license = licenses.bsd3;
44 maintainers = with maintainers; [ tjni ];
45 };
46}