1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, isPy3k
5, aiohttp
6, async-timeout
7, aresponses
8, pytest-asyncio
9, pytestCheckHook
10}:
11
12buildPythonPackage rec {
13 pname = "pyaftership";
14 version = "21.1.0";
15
16 disabled = !isPy3k;
17
18 src = fetchFromGitHub {
19 owner = "ludeeus";
20 repo = pname;
21 rev = version;
22 sha256 = "0jyzgwaijkp80whi58a0hgjzmnlczmd9vwn11z2m0j01kbdwznn5";
23 };
24
25 propagatedBuildInputs = [ aiohttp async-timeout ];
26
27 checkInputs = [ pytestCheckHook aresponses pytest-asyncio ];
28 pythonImportsCheck = [ "pyaftership" ];
29
30 meta = with lib; {
31 description = "Python wrapper package for the AfterShip API";
32 homepage = "https://github.com/ludeeus/pyaftership";
33 license = licenses.mit;
34 maintainers = with maintainers; [ jamiemagee ];
35 };
36}