depot/third_party/nixpkgs/pkgs/development/python-modules/pyaftership/default.nix
Default email 3e2acf8aff Project import generated by Copybara.
GitOrigin-RevId: d42cd445dde587e9a993cd9434cb43da07c4c5de
2021-05-20 18:08:51 -05:00

36 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 ];
};
}