Files
nixpkgs/pkgs/development/python-modules/dill/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

49 lines
925 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
python,
pythonOlder,
setuptools,
# passthru tests
apache-beam,
datasets,
}:
buildPythonPackage rec {
pname = "dill";
version = "0.4.0";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "uqfoundation";
repo = "dill";
tag = version;
hash = "sha256-RIyWTeIkK5cS4Fh3TK48XLa/EU9Iwlvcml0CTs5+Uh8=";
};
nativeBuildInputs = [ setuptools ];
checkPhase = ''
runHook preCheck
${python.interpreter} dill/tests/__main__.py
runHook postCheck
'';
passthru.tests = {
inherit apache-beam datasets;
};
pythonImportsCheck = [ "dill" ];
meta = {
description = "Serialize all of python (almost)";
homepage = "https://github.com/uqfoundation/dill/";
changelog = "https://github.com/uqfoundation/dill/releases/tag/dill-${version}";
license = lib.licenses.bsd3;
};
}