depot/third_party/nixpkgs/pkgs/development/python-modules/pykeyatome/default.nix
Default email 81047829ea Project import generated by Copybara.
GitOrigin-RevId: 48d63e924a2666baf37f4f14a18f19347fbd54a2
2022-02-10 15:34:41 -05:00

59 lines
1 KiB
Nix

{ lib
, buildPythonPackage
, fake-useragent
, fetchFromGitHub
, pytest-aiohttp
, pytestCheckHook
, pythonOlder
, requests
, requests-mock
, responses
, simplejson
}:
buildPythonPackage rec {
pname = "pykeyatome";
version = "1.4.1";
format = "setuptools";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "jugla";
repo = "pyKeyAtome";
rev = "V${version}";
sha256 = "sha256-Gv418i2JLoovwagkZpv8PIJPW3I/0pRmXR/PJOJ2NBc=";
};
propagatedBuildInputs = [
fake-useragent
requests
simplejson
];
checkInputs = [
pytest-aiohttp
pytestCheckHook
requests-mock
responses
];
disabledTests = [
# Tests require network access
"test_consumption"
"test_get_live"
"test_login"
"test_relog_after_session_down"
];
pythonImportsCheck = [
"pykeyatome"
];
meta = with lib; {
description = "Python module to get data from Atome Key";
homepage = "https://github.com/jugla/pyKeyAtome";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}