2021-05-08 23:59:49 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, isPy3k
|
|
|
|
, aiohttp
|
|
|
|
, async-timeout
|
|
|
|
, aresponses
|
|
|
|
, pytest-asyncio
|
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
2020-10-18 21:53:36 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyaftership";
|
2021-03-24 09:28:21 +00:00
|
|
|
version = "21.1.0";
|
2020-10-18 21:53:36 +01:00
|
|
|
|
|
|
|
disabled = !isPy3k;
|
|
|
|
|
2021-05-08 23:59:49 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ludeeus";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
|
|
|
sha256 = "0jyzgwaijkp80whi58a0hgjzmnlczmd9vwn11z2m0j01kbdwznn5";
|
2020-10-18 21:53:36 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ aiohttp async-timeout ];
|
|
|
|
|
2021-05-08 23:59:49 +01:00
|
|
|
checkInputs = [ pytestCheckHook aresponses pytest-asyncio ];
|
|
|
|
pythonImportsCheck = [ "pyaftership" ];
|
2020-10-18 21:53:36 +01:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python wrapper package for the AfterShip API";
|
|
|
|
homepage = "https://github.com/ludeeus/pyaftership";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ jamiemagee ];
|
|
|
|
};
|
|
|
|
}
|