nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 aiohttp,
4 async-timeout,
5 buildPythonPackage,
6 fetchFromGitHub,
7 pytest-aiohttp,
8 pytestCheckHook,
9 yarl,
10}:
11
12buildPythonPackage rec {
13 pname = "energyflip-client";
14 version = "0.2.2";
15 format = "setuptools";
16
17 src = fetchFromGitHub {
18 owner = "dennisschroer";
19 repo = "energyflip-client";
20 tag = "v${version}";
21 hash = "sha256-neuZ6pZWW/Rgexu/iCEymjnxi5l/IuLKPFn6S9U4DgU=";
22 };
23
24 propagatedBuildInputs = [
25 aiohttp
26 async-timeout
27 yarl
28 ];
29
30 nativeCheckInputs = [
31 pytest-aiohttp
32 pytestCheckHook
33 ];
34
35 pythonImportsCheck = [ "energyflip" ];
36
37 meta = {
38 description = "Library to communicate with the API behind EnergyFlip";
39 homepage = "https://github.com/dennisschroer/energyflip-client";
40 license = lib.licenses.asl20;
41 maintainers = with lib.maintainers; [ fab ];
42 };
43}