nixpkgs/pkgs/development/python-modules/pyopenuv/default.nix
2021-09-19 03:52:06 +02:00

54 lines
1020 B
Nix

{ lib
, aiohttp
, aresponses
, asynctest
, backoff
, buildPythonPackage
, fetchFromGitHub
, poetry-core
, pytest-aiohttp
, pytest-asyncio
, pytest-cov
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "pyopenuv";
version = "2.2.1";
format = "pyproject";
src = fetchFromGitHub {
owner = "bachya";
repo = pname;
rev = version;
sha256 = "sha256-9hpXVKCpVbUAoTxd5mHP9NK1dZxbrQUxrQrOEVHpaPo=";
};
nativeBuildInputs = [ poetry-core ];
propagatedBuildInputs = [
aiohttp
backoff
];
checkInputs = [
aresponses
asynctest
pytest-asyncio
pytest-aiohttp
pytest-cov
pytestCheckHook
];
# Ignore the examples as they are prefixed with test_
pytestFlagsArray = [ "--ignore examples/" ];
pythonImportsCheck = [ "pyopenuv" ];
meta = with lib; {
description = "Python API to retrieve data from openuv.io";
homepage = "https://github.com/bachya/pyopenuv";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}