nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 httpx,
6 orjson,
7 poetry-core,
8 pytest-asyncio,
9 pytest-cov-stub,
10 pytestCheckHook,
11 respx,
12 rich,
13 syrupy,
14 tenacity,
15 typer,
16}:
17
18buildPythonPackage rec {
19 pname = "pytrydan";
20 version = "0.8.1";
21 pyproject = true;
22
23 src = fetchFromGitHub {
24 owner = "dgomes";
25 repo = "pytrydan";
26 tag = "v${version}";
27 hash = "sha256-OHC+Ul64BYCsgoFDxI1hPjBGkd/pQ0j0c9Pt5lWg1E0=";
28 };
29
30 pythonRelaxDeps = [ "tenacity" ];
31
32 build-system = [ poetry-core ];
33
34 dependencies = [
35 httpx
36 orjson
37 rich
38 tenacity
39 typer
40 ];
41
42 nativeCheckInputs = [
43 pytest-asyncio
44 pytest-cov-stub
45 pytestCheckHook
46 respx
47 syrupy
48 ];
49
50 pythonImportsCheck = [ "pytrydan" ];
51
52 meta = {
53 description = "Library to interface with V2C EVSE Trydan";
54 homepage = "https://github.com/dgomes/pytrydan";
55 changelog = "https://github.com/dgomes/pytrydan/blob/${version}/CHANGELOG.md";
56 license = lib.licenses.mit;
57 maintainers = with lib.maintainers; [ fab ];
58 mainProgram = "pytrydan";
59 };
60}