mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-28 16:43:58 +00:00
787ac3b028
Diff: https://github.com/pyapp-kit/app-model/compare/refs/tags/v0.1.4...v0.2.0 Changelog: https://github.com/pyapp-kit/app-model/blob/v0.2.0/CHANGELOG.md
58 lines
1.0 KiB
Nix
58 lines
1.0 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.0";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "pyapp-kit";
|
|
repo = pname;
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-4I0lDL6B+8f/lj09zT14lvbGATuHIfjKwwABXi6OIvE=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|