depot/third_party/nixpkgs/pkgs/development/python-modules/app-model/default.nix
Default email e7ec2969af Project import generated by Copybara.
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
2024-01-13 09:15:51 +01:00

57 lines
1 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.2.4";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "pyapp-kit";
repo = "app-model";
rev = "refs/tags/v${version}";
hash = "sha256-idie99ditHJG/6rv97LDaF71iTjjgJyhLiTrbkQmbts=";
};
nativeBuildInputs = [
hatch-vcs
hatchling
];
propagatedBuildInputs = [
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/v${version}/CHANGELOG.md";
license = licenses.bsd3;
maintainers = with maintainers; [ fab ];
};
}