mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-06-29 05:25:48 +00:00
Set of models representing data passed around across the toolchain https://github.com/Lookyloo/lookyloo-models
53 lines
1.1 KiB
Nix
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 ];
|
|
};
|
|
})
|