`buildDotnetModule`: add support for installing pre-release tools (#374663)
[NixPkgs.git] / pkgs / development / python-modules / energyflip-client / default.nix
blob6dc18ec4c286f044e39fd2a717d17052d1f07d31
2   lib,
3   aiohttp,
4   async-timeout,
5   buildPythonPackage,
6   fetchFromGitHub,
7   pytest-aiohttp,
8   pytestCheckHook,
9   pythonOlder,
10   yarl,
13 buildPythonPackage rec {
14   pname = "energyflip-client";
15   version = "0.2.2";
16   format = "setuptools";
18   disabled = pythonOlder "3.7";
20   src = fetchFromGitHub {
21     owner = "dennisschroer";
22     repo = pname;
23     tag = "v${version}";
24     hash = "sha256-neuZ6pZWW/Rgexu/iCEymjnxi5l/IuLKPFn6S9U4DgU=";
25   };
27   propagatedBuildInputs = [
28     aiohttp
29     async-timeout
30     yarl
31   ];
33   nativeCheckInputs = [
34     pytest-aiohttp
35     pytestCheckHook
36   ];
38   pythonImportsCheck = [ "energyflip" ];
40   meta = with lib; {
41     description = "Library to communicate with the API behind EnergyFlip";
42     homepage = "https://github.com/dennisschroer/energyflip-client";
43     license = licenses.asl20;
44     maintainers = with maintainers; [ fab ];
45   };