1{ lib
2, aiohttp
3, buildPythonPackage
4, fetchFromGitHub
5, pythonOlder
6, yarl
7}:
8
9buildPythonPackage rec {
10 pname = "aiotractive";
11 version = "0.5.5";
12 disabled = pythonOlder "3.7";
13
14 src = fetchFromGitHub {
15 owner = "zhulik";
16 repo = pname;
17 rev = "v${version}";
18 sha256 = "sha256-VCwIAeSAN4tMwB8TXN/ukrws0qYv/jHHeEu++m56AHA=";
19 };
20
21 propagatedBuildInputs = [
22 aiohttp
23 yarl
24 ];
25
26 # Project has no tests
27 doCheck = false;
28
29 pythonImportsCheck = [ "aiotractive" ];
30
31 meta = with lib; {
32 description = "Python client for the Tractive REST API";
33 homepage = "https://github.com/zhulik/aiotractive";
34 license = licenses.mit;
35 maintainers = with maintainers; [ fab ];
36 };
37}