mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-29 09:04:17 +00:00
61aa1a2664
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.
47 lines
858 B
Nix
47 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 ];
|
|
};
|
|
}
|