Files
nixpkgs/pkgs/development/python-modules/app-model/default.nix
T
Robert Schütz 1a04744f74 treewide: remove superfluous disabled
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:

    pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
    for f in $(find -name '*.nix'); do
        grep -q "$pattern" "$f" || continue
        sed -i "/$pattern/d" "$f"
        if [ $(grep -c pythonOlder "$f") == 1 ]; then
            sed -i '/^\s*pythonOlder,\s*$/d' "$f"
        fi
        nixfmt "$f"
    done
2026-01-11 09:34:20 -08:00

52 lines
991 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
hatch-vcs,
hatchling,
in-n-out,
psygnal,
pydantic,
pydantic-compat,
pytestCheckHook,
typing-extensions,
}:
buildPythonPackage rec {
pname = "app-model";
version = "0.4.0";
pyproject = true;
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 = {
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 = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ fab ];
};
}