evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / development / python-modules / dill / default.nix
blob33f0ccd2acca56c466895d2b92581e2c9651880d
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   python,
6   pythonOlder,
7   setuptools,
9   # passthru tests
10   apache-beam,
11   datasets,
14 buildPythonPackage rec {
15   pname = "dill";
16   version = "0.3.9";
17   format = "pyproject";
19   disabled = pythonOlder "3.7";
21   src = fetchFromGitHub {
22     owner = "uqfoundation";
23     repo = pname;
24     rev = "refs/tags/${version}";
25     hash = "sha256-p+W0ppNMfSgplKsQjaTnTrMvQ5poF/E/xSzsiLf9h58=";
26   };
28   nativeBuildInputs = [ setuptools ];
30   checkPhase = ''
31     runHook preCheck
32     ${python.interpreter} dill/tests/__main__.py
33     runHook postCheck
34   '';
36   passthru.tests = {
37     inherit apache-beam datasets;
38   };
40   pythonImportsCheck = [ "dill" ];
42   meta = with lib; {
43     description = "Serialize all of python (almost)";
44     homepage = "https://github.com/uqfoundation/dill/";
45     changelog = "https://github.com/uqfoundation/dill/releases/tag/dill-${version}";
46     license = licenses.bsd3;
47     maintainers = with maintainers; [ tjni ];
48   };