Files
nixpkgs/pkgs/development/python-modules/lookyloo-models/default.nix
Fabian Affolter bf9e5faf50 python3Packages.lookyloo-models: init at 0.2.7
Set of models representing data passed around across the toolchain

https://github.com/Lookyloo/lookyloo-models
2026-05-28 20:20:23 +02:00

53 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
uv-build,
dateparser,
orjson,
pydantic,
ua-parser,
}:
buildPythonPackage (finalAttrs: {
pname = "lookyloo-models";
version = "0.2.7";
pyproject = true;
src = fetchFromGitHub {
owner = "Lookyloo";
repo = "lookyloo-models";
tag = "v${finalAttrs.version}";
hash = "sha256-iIeC7+RBITENUpTM0PuHG8fPtWoEUoq4+40XqwvCVvc=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail "uv_build>=0.11,<0.12" "uv_build"
'';
pythonRelaxDeps = [ "pydantic" ];
build-system = [ uv-build ];
dependencies = [
dateparser
orjson
pydantic
ua-parser
];
# Module has no tests
doCheck = false;
pythonImportsCheck = [ "lookyloo_models" ];
meta = {
description = "Set of models representing data passed around across the toolchain";
homepage = "https://github.com/Lookyloo/lookyloo-models";
# https://github.com/Lookyloo/lookyloo-models/issues/2
license = lib.licenses.unfree;
maintainers = with lib.maintainers; [ fab ];
};
})