nixpkgs/pkgs/development/python-modules/dill/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

47 lines
858 B
Nix
Raw Normal View History

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