at master 971 B view raw
1{ 2 buildPythonPackage, 3 fetchFromGitHub, 4 git, 5 hatch-vcs, 6 lib, 7 manifestoo-core, 8 pytestCheckHook, 9 pythonOlder, 10 tomli, 11 wheel, 12}: 13 14buildPythonPackage rec { 15 pname = "whool"; 16 version = "1.3"; 17 pyproject = true; 18 19 src = fetchFromGitHub { 20 owner = "sbidoul"; 21 repo = "whool"; 22 tag = "v${version}"; 23 hash = "sha256-vY7MPTBjNy3LY29k0MjMDnPiU7l9lUvPvTCrji8A5Cw="; 24 }; 25 26 build-system = [ hatch-vcs ]; 27 28 dependencies = [ 29 manifestoo-core 30 wheel 31 ] 32 ++ lib.optionals (pythonOlder "3.11") [ tomli ]; 33 34 pythonImportsCheck = [ "whool" ]; 35 36 nativeCheckInputs = [ 37 pytestCheckHook 38 git 39 ]; 40 41 setupHook = ./setup-hook.sh; 42 43 meta = { 44 description = "Standards-compliant Python build backend to package Odoo addons"; 45 homepage = "https://github.com/sbidoul/whool"; 46 changelog = "https://github.com/sbidoul/whool/blob/${src.tag}/CHANGELOG.md"; 47 license = lib.licenses.mit; 48 maintainers = [ lib.maintainers.yajo ]; 49 }; 50}