depot/third_party/nixpkgs/pkgs/development/python-modules/app-model/default.nix
Default email 5e7c2d6cef Project import generated by Copybara.
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
2023-10-09 21:29:22 +02:00

57 lines
1 KiB
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, in-n-out
, psygnal
, pydantic
, pytestCheckHook
, pythonOlder
, typing-extensions
, hatch-vcs
, hatchling
}:
buildPythonPackage rec {
pname = "app-model";
version = "0.2.2";
format = "pyproject";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "pyapp-kit";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-vo10BHUzvYlldAqTw/1LxgvSXgTM3LAls9jQIeB5LcU=";
};
SETUPTOOLS_SCM_PRETEND_VERSION = version;
nativeBuildInputs = [
hatch-vcs
hatchling
];
propagatedBuildInputs = [
psygnal
pydantic
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 ];
};
}