Files
nixpkgs/pkgs/development/python-modules/app-model/default.nix
2025-07-01 16:55:25 +00:00

55 lines
1.0 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
hatch-vcs,
hatchling,
in-n-out,
psygnal,
pydantic,
pydantic-compat,
pytestCheckHook,
pythonOlder,
typing-extensions,
}:
buildPythonPackage rec {
pname = "app-model";
version = "0.4.0";
pyproject = true;
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "pyapp-kit";
repo = "app-model";
tag = "v${version}";
hash = "sha256-T7aUwdne1rUzhVRotlxDvEBm3mi/frUQziZdLo53Lsg=";
};
build-system = [
hatch-vcs
hatchling
];
dependencies = [
psygnal
pydantic
pydantic-compat
in-n-out
typing-extensions
];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "app_model" ];
meta = with lib; {
description = "Module to implement generic application schema";
homepage = "https://github.com/pyapp-kit/app-model";
changelog = "https://github.com/pyapp-kit/app-model/blob/${src.tag}/CHANGELOG.md";
license = licenses.bsd3;
maintainers = with maintainers; [ fab ];
};
}