depot/third_party/nixpkgs/pkgs/development/python-modules/pyopenuv/default.nix
Default email 69f1308e7b Project import generated by Copybara.
GitOrigin-RevId: 4138cbd913fad85073e59007710e3f083d0eb7c6
2021-08-12 08:41:47 -06:00

53 lines
1,020 B
Nix

{ lib
, aiohttp
, aresponses
, asynctest
, backoff
, buildPythonPackage
, fetchFromGitHub
, poetry-core
, pytest-aiohttp
, pytest-asyncio
, pytest-cov
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "pyopenuv";
version = "2.1.0";
format = "pyproject";
src = fetchFromGitHub {
owner = "bachya";
repo = pname;
rev = version;
sha256 = "sha256-S2X7cTArjiWOFjQGnrZ4AuhgN8t18wf9d6i9X5thRZg=";
};
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 ];
};
}