blob: 679471a1917c625a08b894f8cef3a8ae43ed1b55 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
hatchling,
httpx,
pytest-freezer,
pytest-httpserver,
pytest-randomly,
pytest-timeout,
pytestCheckHook,
uv-dynamic-versioning,
}:
buildPythonPackage rec {
pname = "urlscan-python";
version = "0.0.1";
pyproject = true;
src = fetchFromGitHub {
owner = "urlscan";
repo = "urlscan-python";
tag = "v${version}";
hash = "sha256-HkovBmmVvUYA5U43w5TUOcwhZAN/0o0BETd1s9R940w=";
};
build-system = [
hatchling
uv-dynamic-versioning
];
dependencies = [ httpx ];
nativeCheckInputs = [
pytest-freezer
pytest-httpserver
pytest-randomly
pytest-timeout
pytestCheckHook
];
pythonImportsCheck = [ "urlscan" ];
meta = {
description = "Python API client for urlscan.io";
homepage = "https://github.com/urlscan/urlscan-python/";
changelog = "https://github.com/urlscan/urlscan-python/releases/tag/${src.tag}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
};
}
|