1{
2 aiohttp,
3 buildPythonPackage,
4 fetchFromGitHub,
5 hatchling,
6 lib,
7 pydantic,
8 pytest-asyncio,
9 pytestCheckHook,
10}:
11
12buildPythonPackage rec {
13 pname = "wsdot";
14 version = "0.0.1";
15 pyproject = true;
16
17 src = fetchFromGitHub {
18 owner = "ucodery";
19 repo = "wsdot";
20 tag = "v${version}";
21 hash = "sha256-ZmQXa/C5AxqzAdmxqStWnCLrm3AJb/krxbDhtLYMWPw=";
22 };
23
24 build-system = [ hatchling ];
25
26 dependencies = [
27 aiohttp
28 pydantic
29 ];
30
31 pythonImportsCheck = [ "wsdot" ];
32
33 nativeCheckInputs = [
34 pytest-asyncio
35 pytestCheckHook
36 ];
37
38 meta = {
39 changelog = "https://github.com/ucodery/wsdot/releases/tag/${src.tag}";
40 description = "Python wrapper of the wsdot.wa.gov APIs";
41 homepage = "https://github.com/ucodery/wsdot";
42 license = lib.licenses.bsd3;
43 maintainers = with lib.maintainers; [ dotlambda ];
44 };
45}