nixpkgs/pkgs/development/python-modules/dill/default.nix
Theodore Ni 61aa1a2664
python310Packages.dill: add passthru tests
Adds apache-beam and datasets to be tested when dill is updated. These
two packages broke when updating dill from 0.3.5.1 to 0.3.6.
2022-11-15 15:49:29 -08: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 ];
};
}