1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 setuptools-scm, 6 inflect, 7 more-itertools, 8 pytestCheckHook, 9}: 10 11buildPythonPackage rec { 12 pname = "jaraco-itertools"; 13 version = "6.4.3"; 14 pyproject = true; 15 16 src = fetchFromGitHub { 17 owner = "jaraco"; 18 repo = "jaraco.itertools"; 19 tag = "v${version}"; 20 hash = "sha256-LjWkyY9I8BBYpFm8TT3kq4vk63pNQrnZ15haJCQ5xlk="; 21 }; 22 23 pythonNamespaces = [ "jaraco" ]; 24 25 build-system = [ setuptools-scm ]; 26 27 postPatch = '' 28 # downloads license texts at build time 29 sed -i "/coherent\.licensed/d" pyproject.toml 30 ''; 31 32 dependencies = [ 33 inflect 34 more-itertools 35 ]; 36 37 nativeCheckInputs = [ pytestCheckHook ]; 38 39 pythonImportsCheck = [ "jaraco.itertools" ]; 40 41 meta = with lib; { 42 description = "Tools for working with iterables"; 43 homepage = "https://github.com/jaraco/jaraco.itertools"; 44 license = licenses.mit; 45 }; 46}