1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 hatch-docstring-description, 6 hatch-vcs, 7 hatchling, 8 pytestCheckHook, 9}: 10 11buildPythonPackage rec { 12 pname = "legacy-api-wrap"; 13 version = "1.4.1"; 14 pyproject = true; 15 16 src = fetchFromGitHub { 17 owner = "flying-sheep"; 18 repo = "legacy-api-wrap"; 19 tag = "v${version}"; 20 hash = "sha256-ySkhfUyRBd4QS3f46KlaA5NrHxHr+dlkgmD4fGk2KsA="; 21 }; 22 23 build-system = [ 24 hatch-docstring-description 25 hatch-vcs 26 hatchling 27 ]; 28 29 pythonImportsCheck = [ 30 "legacy_api_wrap" 31 ]; 32 33 nativeCheckInputs = [ pytestCheckHook ]; 34 35 meta = { 36 description = "Wrap legacy APIs in python projects"; 37 homepage = "https://github.com/flying-sheep/legacy-api-wrap"; 38 changelog = "https://github.com/flying-sheep/legacy-api-wrap/releases/tag/${src.tag}"; 39 license = lib.licenses.mpl20; 40 maintainers = with lib.maintainers; [ bcdarwin ]; 41 }; 42}