depot/third_party/nixpkgs/pkgs/development/python-modules/dill/default.nix
Default email 01ed8ef136 Project import generated by Copybara.
GitOrigin-RevId: 20fc948445a6c22d4e8d5178e9a6bc6e1f5417c8
2022-11-21 19:40:18 +02:00

46 lines
858 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, python
, setuptools
# passthru tests
, apache-beam
, datasets
}:
buildPythonPackage rec {
pname = "dill";
version = "0.3.6";
format = "pyproject";
src = fetchFromGitHub {
owner = "uqfoundation";
repo = pname;
rev = "refs/tags/dill-${version}";
hash = "sha256-lh1o/TqnqtYN9xTZom33y1/7ZhMEAFpheLdtalwgObQ=";
};
nativeBuildInputs = [
setuptools
];
checkPhase = ''
runHook preCheck
${python.interpreter} dill/tests/__main__.py
runHook postCheck
'';
passthru.tests = {
inherit apache-beam datasets;
};
pythonImportsCheck = [ "dill" ];
meta = with lib; {
description = "Serialize all of python (almost)";
homepage = "https://github.com/uqfoundation/dill/";
license = licenses.bsd3;
maintainers = with maintainers; [ tjni ];
};
}