nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 45 lines 895 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 python, 6 setuptools, 7 8 # passthru tests 9 apache-beam, 10 datasets, 11}: 12 13buildPythonPackage (finalAttrs: { 14 pname = "dill"; 15 version = "0.4.1"; 16 pyproject = true; 17 18 src = fetchFromGitHub { 19 owner = "uqfoundation"; 20 repo = "dill"; 21 tag = finalAttrs.version; 22 hash = "sha256-Yh9WvescLgV7DmxGBTGKsb29+eRzF9qjZMg0DQQyLyY="; 23 }; 24 25 build-system = [ setuptools ]; 26 27 checkPhase = '' 28 runHook preCheck 29 ${python.interpreter} dill/tests/__main__.py 30 runHook postCheck 31 ''; 32 33 passthru.tests = { 34 inherit apache-beam datasets; 35 }; 36 37 pythonImportsCheck = [ "dill" ]; 38 39 meta = { 40 description = "Serialize all of python (almost)"; 41 homepage = "https://github.com/uqfoundation/dill/"; 42 changelog = "https://github.com/uqfoundation/dill/releases/tag/${finalAttrs.src.tag}"; 43 license = lib.licenses.bsd3; 44 }; 45})