Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
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.2"; 17 pyproject = true; 18 19 src = fetchFromGitHub { 20 owner = "sbidoul"; 21 repo = "whool"; 22 rev = "refs/tags/v${version}"; 23 hash = "sha256-uIHtygDeFbtIZLn0YwGzAHD7B+EZQ3JAovuNMZ5YMxc="; 24 }; 25 26 build-system = [ hatch-vcs ]; 27 28 dependencies = [ 29 manifestoo-core 30 wheel 31 ] ++ lib.optionals (pythonOlder "3.11") [ tomli ]; 32 33 pythonImportsCheck = [ "whool" ]; 34 35 nativeCheckInputs = [ 36 pytestCheckHook 37 git 38 ]; 39 40 setupHook = ./setup-hook.sh; 41 42 meta = { 43 description = "Standards-compliant Python build backend to package Odoo addons"; 44 homepage = "https://github.com/sbidoul/whool"; 45 changelog = "https://github.com/sbidoul/whool/blob/${version}/CHANGELOG.md"; 46 license = lib.licenses.mit; 47 maintainers = [ lib.maintainers.yajo ]; 48 }; 49}