mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-28 08:33:54 +00:00
43dcf6a240
Diff: https://github.com/pyapp-kit/app-model/compare/refs/tags/v0.1.1...v0.1.2 Changelog: https://github.com/pyapp-kit/app-model/blob/v0.1.2/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.1.2";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "pyapp-kit";
|
|
repo = pname;
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-W1DL6HkqXkfVE9SPD0cUhPln5FBW5vPICpbQulRhaWs=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|