2024-07-31 10:19:44 +00:00
|
|
|
{
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
git,
|
|
|
|
hatch-vcs,
|
|
|
|
lib,
|
|
|
|
manifestoo-core,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
|
|
|
tomli,
|
|
|
|
wheel,
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "whool";
|
|
|
|
version = "1.2";
|
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "sbidoul";
|
|
|
|
repo = "whool";
|
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
hash = "sha256-uIHtygDeFbtIZLn0YwGzAHD7B+EZQ3JAovuNMZ5YMxc=";
|
|
|
|
};
|
|
|
|
|
|
|
|
build-system = [ hatch-vcs ];
|
|
|
|
|
|
|
|
dependencies = [
|
|
|
|
manifestoo-core
|
|
|
|
wheel
|
|
|
|
] ++ lib.optionals (pythonOlder "3.11") [ tomli ];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "whool" ];
|
|
|
|
|
|
|
|
nativeCheckInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
git
|
|
|
|
];
|
|
|
|
|
|
|
|
setupHook = ./setup-hook.sh;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Standards-compliant Python build backend to package Odoo addons";
|
|
|
|
homepage = "https://github.com/sbidoul/whool";
|
2024-09-19 14:19:46 +00:00
|
|
|
changelog = "https://github.com/sbidoul/whool/blob/v${version}/CHANGELOG.md";
|
2024-07-31 10:19:44 +00:00
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = [ lib.maintainers.yajo ];
|
|
|
|
};
|
|
|
|
}
|