1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pytestCheckHook, 6 setuptools, 7 setuptools-scm, 8}: 9 10buildPythonPackage rec { 11 pname = "petl"; 12 version = "1.7.17"; 13 pyproject = true; 14 15 src = fetchFromGitHub { 16 owner = "petl-developers"; 17 repo = "petl"; 18 tag = "v${version}"; 19 hash = "sha256-zYR/9WdaVCmdaCzOFfHirVE4Gg+CVLvWu1RpWXdqLSc="; 20 }; 21 22 build-system = [ 23 setuptools 24 setuptools-scm 25 ]; 26 27 nativeCheckInputs = [ 28 pytestCheckHook 29 ]; 30 31 pythonImportsCheck = [ 32 "petl" 33 ]; 34 35 meta = { 36 homepage = "https://github.com/petl-developers/petl"; 37 changelog = "https://github.com/petl-developers/petl/releases/tag/${src.tag}"; 38 description = "Python package for extracting, transforming and loading tables of data"; 39 license = lib.licenses.mit; 40 mainProgram = "petl"; 41 maintainers = with lib.maintainers; [ 42 alapshin 43 ]; 44 }; 45}