mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 03:17:13 +00:00
37 lines
780 B
Nix
37 lines
780 B
Nix
{ 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 ];
|
|
};
|
|
}
|