about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/pyaftership/default.nix
blob: 6253d95111835cb7c37620e2340b4cae7515c8ce (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
{ lib
, buildPythonPackage
, fetchFromGitHub
, isPy3k
, aiohttp
, async-timeout
, aresponses
, pytest-asyncio
, pytestCheckHook
}:

buildPythonPackage rec {
  pname = "pyaftership";
  version = "21.1.0";

  disabled = !isPy3k;

  src = fetchFromGitHub {
    owner = "ludeeus";
    repo = pname;
    rev = version;
    sha256 = "0jyzgwaijkp80whi58a0hgjzmnlczmd9vwn11z2m0j01kbdwznn5";
  };

  propagatedBuildInputs = [ aiohttp async-timeout ];

  checkInputs = [ pytestCheckHook aresponses pytest-asyncio ];
  pythonImportsCheck = [ "pyaftership" ];

  meta = with lib; {
    description = "Python wrapper package for the AfterShip API";
    homepage = "https://github.com/ludeeus/pyaftership";
    license = licenses.mit;
    maintainers = with maintainers; [ jamiemagee ];
  };
}