depot/third_party/nixpkgs/pkgs/development/python-modules/afsapi/default.nix
Default email ce641f4048 Project import generated by Copybara.
GitOrigin-RevId: bc5d68306b40b8522ffb69ba6cff91898c2fbbff
2021-12-06 17:07:01 +01:00

49 lines
846 B
Nix

{ lib
, aiohttp
, buildPythonPackage
, fetchFromGitHub
, lxml
, pytest-aiohttp
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "afsapi";
version = "0.0.4";
format = "setuptools";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "zhelev";
repo = "python-afsapi";
rev = version;
sha256 = "aevxhHuRedDs0JxeMlYSKHDQwcIs7miRm4FCtssdE0w=";
};
propagatedBuildInputs = [
aiohttp
lxml
];
checkInputs = [
pytest-aiohttp
pytestCheckHook
];
pytestFlagsArray = [
"async_tests.py"
];
pythonImportsCheck = [
"afsapi"
];
meta = with lib; {
description = "Python implementation of the Frontier Silicon API";
homepage = "https://github.com/zhelev/python-afsapi";
license = licenses.asl20;
maintainers = with maintainers; [ fab ];
};
}